1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 08:09:45 +01:00
home-manager/tests/modules/services/window-managers/i3/i3-workspace-output.nix
Sven Friedrich f63b39a67d
i3-sway: multiple outputs (#4223)
multiple outputs can be assigned to a workspace
2023-07-14 21:25:55 +02:00

47 lines
846 B
Nix

{ ... }:
let
i3 = {
ws1 = "1";
ws2 = "ABC";
ws3 = "3: Test";
ws4 = ''!"§$%&/(){}[]=?\*#<>-_.:,;²³'';
ws5 = "Multiple";
};
in {
imports = [ ./i3-stubs.nix ];
xsession.windowManager.i3 = {
enable = true;
config.workspaceOutputAssign = [
{
workspace = "${i3.ws1}";
output = "eDP";
}
{
workspace = "${i3.ws2}";
output = "DP";
}
{
workspace = "${i3.ws3}";
output = "HDMI";
}
{
workspace = "${i3.ws4}";
output = "DVI";
}
{
workspace = "${i3.ws5}";
output = [ "DVI" "HDMI" "DP" ];
}
];
};
nmt.script = ''
assertFileExists home-files/.config/i3/config
assertFileContent home-files/.config/i3/config \
${./i3-workspace-output-expected.conf}
'';
}