i3: reallow using null to disable a keybinding
(cherry picked from commit d5cc53a4e1
)
This commit is contained in:
parent
9f013a8fb8
commit
e6bc17e7fb
|
@ -411,7 +411,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
keybindings = mkOption {
|
keybindings = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf (types.nullOr types.str);
|
||||||
default = mapAttrs (n: mkOptionDefault) {
|
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";
|
||||||
|
@ -486,7 +486,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
keycodebindings = mkOption {
|
keycodebindings = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf (types.nullOr types.str);
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
An attribute set that assigns keypress to an action using key code.
|
An attribute set that assigns keypress to an action using key code.
|
||||||
|
|
Loading…
Reference in a new issue