2019-01-14 21:50:11 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2021-09-26 09:08:45 +00:00
|
|
|
imports = [ ./i3-stubs.nix ];
|
2019-01-14 21:50:11 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
xsession.windowManager.i3 = {
|
|
|
|
enable = true;
|
2019-01-14 21:50:11 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
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";
|
|
|
|
};
|
2019-01-14 21:50:11 +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-keybindings-expected.conf}
|
|
|
|
'';
|
2019-01-14 21:50:11 +00:00
|
|
|
}
|