diff options
author | Roman Volosatovs <rvolosatovs@riseup.net> | 2020-04-13 15:53:22 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-05-11 22:02:37 +0200 |
commit | 37202a1b708c36bfc3a0f4bac9b7af0d9666f9b0 (patch) | |
tree | b249a648789178cbc3fb822e13db3ce4b3a8196d /modules/services/window-managers | |
parent | b886cbea0bcc62b63dd4c7654843df62714e55b6 (diff) |
sway: use `--to-code` in `bindsym`
Diffstat (limited to 'modules/services/window-managers')
-rw-r--r-- | modules/services/window-managers/i3-sway/lib/functions.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/services/window-managers/i3-sway/lib/functions.nix b/modules/services/window-managers/i3-sway/lib/functions.nix index ac0a30d10b6..dd59e691678 100644 --- a/modules/services/window-managers/i3-sway/lib/functions.nix +++ b/modules/services/window-managers/i3-sway/lib/functions.nix @@ -10,8 +10,9 @@ rec { keybindingsStr = keybindings: concatStringsSep "\n" (mapAttrsToList (keycomb: action: - optionalString (action != null) "bindsym ${keycomb} ${action}") - keybindings); + optionalString (action != null) "bindsym ${ + lib.optionalString (moduleName == "sway") "--to-code " + }${keycomb} ${action}") keybindings); keycodebindingsStr = keycodebindings: concatStringsSep "\n" (mapAttrsToList (keycomb: action: |