2023-05-13 00:08:12 +02:00
|
|
|
{ ... }:
|
2021-06-03 02:03:20 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
let
|
|
|
|
i3 = {
|
|
|
|
ws1 = "1";
|
|
|
|
ws2 = "ABC";
|
|
|
|
ws3 = "3: Test";
|
|
|
|
ws4 = ''!"§$%&/(){}[]=?\*#<>-_.:,;²³'';
|
2023-07-14 21:25:55 +02:00
|
|
|
ws5 = "Multiple";
|
2021-09-26 11:08:45 +02:00
|
|
|
};
|
2021-06-03 02:03:20 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
in {
|
|
|
|
imports = [ ./i3-stubs.nix ];
|
2021-06-03 02:03:20 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
xsession.windowManager.i3 = {
|
|
|
|
enable = true;
|
2021-06-03 02:03:20 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
config.workspaceOutputAssign = [
|
|
|
|
{
|
|
|
|
workspace = "${i3.ws1}";
|
|
|
|
output = "eDP";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
workspace = "${i3.ws2}";
|
|
|
|
output = "DP";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
workspace = "${i3.ws3}";
|
|
|
|
output = "HDMI";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
workspace = "${i3.ws4}";
|
|
|
|
output = "DVI";
|
|
|
|
}
|
2023-07-14 21:25:55 +02:00
|
|
|
{
|
|
|
|
workspace = "${i3.ws5}";
|
|
|
|
output = [ "DVI" "HDMI" "DP" ];
|
|
|
|
}
|
2021-09-26 11:08:45 +02:00
|
|
|
];
|
2021-06-03 02:03:20 +02:00
|
|
|
};
|
2021-09-26 11:08:45 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/i3/config
|
|
|
|
assertFileContent home-files/.config/i3/config \
|
|
|
|
${./i3-workspace-output-expected.conf}
|
|
|
|
'';
|
2021-06-03 02:03:20 +02:00
|
|
|
}
|