diff --git a/modules/home/rsydn/programs/ghostty.nix b/modules/home/rsydn/programs/ghostty.nix index 3ebdfca..07d1934 100644 --- a/modules/home/rsydn/programs/ghostty.nix +++ b/modules/home/rsydn/programs/ghostty.nix @@ -7,6 +7,7 @@ theme = "dracula"; command = "shell:${config.home.profileDirectory}/bin/tmux new-session -A -s ghostty"; + keybind = [ "cmd+k=text:\\x01K" ]; }; themes.dracula = { diff --git a/modules/home/rsydn/shell/tmux.nix b/modules/home/rsydn/shell/tmux.nix index caa0162..74375a1 100644 --- a/modules/home/rsydn/shell/tmux.nix +++ b/modules/home/rsydn/shell/tmux.nix @@ -18,6 +18,8 @@ ''; }]; extraConfig = '' + set -s extended-keys on + set -as terminal-features 'xterm-ghostty:extkeys' set-option -g status-style "bg=#282a36 fg=#f8f8f2" set -g status-interval 5 setw -g automatic-rename on @@ -28,6 +30,7 @@ unbind '"' unbind % set -g display-panes-time 1500 + bind K send-keys -R \; send-keys C-l \; clear-history ''; }; }