2019-01-14 22:50:11 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2021-09-26 11:08:45 +02:00
|
|
|
imports = [ ./i3-stubs.nix ];
|
2019-01-14 22:50:11 +01:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
xsession.windowManager.i3 = {
|
|
|
|
enable = true;
|
2019-01-14 22:50:11 +01:00
|
|
|
|
2021-09-26 11:08:45 +02: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 22:50:11 +01:00
|
|
|
};
|
2021-09-26 11:08:45 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/i3/config
|
|
|
|
assertFileContent home-files/.config/i3/config \
|
|
|
|
${./i3-keybindings-expected.conf}
|
|
|
|
'';
|
2019-01-14 22:50:11 +01:00
|
|
|
}
|