From d5cc53a4e1a0804b426a9882cfee809ee86fd9a5 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 5 Jan 2019 22:43:44 +0100 Subject: [PATCH] i3: reallow using null to disable a keybinding --- modules/services/window-managers/i3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index 19f9cbde8..e7cc49a91 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -411,7 +411,7 @@ let }; keybindings = mkOption { - type = types.attrsOf types.str; + type = types.attrsOf (types.nullOr types.str); default = mapAttrs (n: mkOptionDefault) { "${cfg.config.modifier}+Return" = "exec i3-sensible-terminal"; "${cfg.config.modifier}+Shift+q" = "kill"; @@ -486,7 +486,7 @@ let }; keycodebindings = mkOption { - type = types.attrsOf types.str; + type = types.attrsOf (types.nullOr types.str); default = {}; description = '' An attribute set that assigns keypress to an action using key code.