diff --git a/modules/cli/tools/tmux.nix b/modules/cli/tools/tmux.nix index afb9cb9..be0b2f3 100644 --- a/modules/cli/tools/tmux.nix +++ b/modules/cli/tools/tmux.nix @@ -57,8 +57,8 @@ # suspend inner tmux (to allow nested sessions) bind @ { set prefix None; set key-table off } # NOTE: C-@ doesn't work since v3.5a (since tmux doesn't support kitty keyboard protocol) - # Instead, C-@ and C-Space does the same thing. - bind -T off C-Space { set -u prefix; set -u key-table } + # Instead, we bind f11 and use kitty to remap C-@ to f11. + bind -T off f11 { set -u prefix; set -u key-table } ''; }; } diff --git a/modules/gui/kitty.nix b/modules/gui/kitty.nix index ca7942a..8666224 100644 --- a/modules/gui/kitty.nix +++ b/modules/gui/kitty.nix @@ -28,6 +28,9 @@ map ctrl+minus change_font_size current -1.0 map ctrl+0 change_font_size current 0 map ctrl+backspace change_font_size current 0 + + # this is used to map + map ctrl+@ send_key f11 ''; };