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