diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index 4a356328b..7b663a4fc 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -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 ];