2021-06-03 02:03:20 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
let
|
|
|
|
i3 = {
|
|
|
|
ws1 = "1";
|
|
|
|
ws2 = "ABC";
|
|
|
|
ws3 = "3: Test";
|
|
|
|
ws4 = ''!"§$%&/(){}[]=?\*#<>-_.:,;²³'';
|
|
|
|
};
|
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";
|
|
|
|
}
|
|
|
|
];
|
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
|
|
|
}
|