diff --git a/modules/services/window-managers/i3-sway/lib/functions.nix b/modules/services/window-managers/i3-sway/lib/functions.nix index ac0a30d1..dd59e691 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: