1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

i3: fix default keybindings override

All default keybindings should have a default priority attached to them.
This will allow users to redefine some of the default keybindings
without using mkForce. Fixes #485.
This commit is contained in:
Nikita Uvarov 2018-12-07 15:45:46 +01:00 committed by Robert Helgesson
parent 6e67bb7ae6
commit 5d63abb473
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -412,7 +412,7 @@ let
keybindings = mkOption { keybindings = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;
default = { default = mapAttrs (n: mkOptionDefault) {
"${cfg.config.modifier}+Return" = "exec i3-sensible-terminal"; "${cfg.config.modifier}+Return" = "exec i3-sensible-terminal";
"${cfg.config.modifier}+Shift+q" = "kill"; "${cfg.config.modifier}+Shift+q" = "kill";
"${cfg.config.modifier}+d" = "exec ${pkgs.dmenu}/bin/dmenu_run"; "${cfg.config.modifier}+d" = "exec ${pkgs.dmenu}/bin/dmenu_run";