mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 21:49:48 +01:00
f63b39a67d
multiple outputs can be assigned to a workspace
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
i3 = {
|
|
ws1 = "1";
|
|
ws2 = "ABC";
|
|
ws3 = "3: Test";
|
|
ws4 = ''!"§$%&/(){}[]=?\*#<>-_.:,;²³'';
|
|
ws5 = "Multiple";
|
|
};
|
|
|
|
in {
|
|
imports = [ ./sway-stubs.nix ];
|
|
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
|
# overriding findutils causes issues
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
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/sway/config
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
|
${./sway-workspace-output-expected.conf}
|
|
'';
|
|
}
|