From 6e4864d93fd97ae45711ba4e78c47de1995ab61d Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Sat, 4 Oct 2025 23:11:09 +0700 Subject: [PATCH] fix: ghostty export TERM & tmux keybinding --- modules/home/rsydn/programs/ghostty.nix | 1 + modules/home/rsydn/shell/tmux.nix | 3 +++ 2 files changed, 4 insertions(+) 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 ''; }; }