1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-14 00:07:15 +00:00
home-manager/tests/modules/services/window-managers/i3/i3-keybindings.nix
Robert Kovacsics 03e11b451e
i3-sway: Allow providing order of other workspaces
For multi-monitor setups, I end up the second screen having workspace 10
(because it is bound to Mod4+0, so ordered before the other numbers).
2025-02-27 20:08:32 +00:00

24 lines
617 B
Nix

{ config, lib, ... }:
{
imports = [ ./i3-stubs.nix ];
xsession.windowManager.i3 = {
enable = true;
config.defaultWorkspace = "workspace number 5";
config.keybindings =
let modifier = config.xsession.windowManager.i3.config.modifier;
in lib.mkOptionDefault {
"${modifier}+Left" = "overridden-command";
"${modifier}+Right" = null;
"${modifier}+Invented" = "invented-key-command";
};
};
nmt.script = ''
assertFileExists home-files/.config/i3/config
assertFileContent home-files/.config/i3/config \
${./i3-keybindings-expected.conf}
'';
}