i3: use null to disable a keybinding

This commit is contained in:
Nadrieril 2018-06-14 00:49:49 +01:00 committed by Nikita Uvarov
parent 2e9fbbc978
commit 5641ee3f94
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -637,11 +637,11 @@ let
};
keybindingsStr = keybindings: concatStringsSep "\n" (
mapAttrsToList (keycomb: action: "bindsym ${keycomb} ${action}") keybindings
mapAttrsToList (keycomb: action: optionalString (action != null) "bindsym ${keycomb} ${action}") keybindings
);
keycodebindingsStr = keycodebindings: concatStringsSep "\n" (
mapAttrsToList (keycomb: action: "bindcode ${keycomb} ${action}") keycodebindings
mapAttrsToList (keycomb: action: optionalString (action != null) "bindcode ${keycomb} ${action}") keycodebindings
);
colorSetStr = c: concatStringsSep " " [ c.border c.background c.text c.indicator c.childBorder ];