From a7074fc94032d3b50df0402c561a32a8b7d9b57e Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 20 Apr 2026 23:04:50 +0800 Subject: [PATCH] feat(tmux): F12 to passthru --- .tmux.conf2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.tmux.conf2 b/.tmux.conf2 index b026223..fe5ead5 100644 --- a/.tmux.conf2 +++ b/.tmux.conf2 @@ -25,10 +25,17 @@ bind - split-window -v -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}" # other key bindings +## prefix r: reload conf bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" +## prefix m: toggle mouse mode bind m run 'old=$(tmux show -gv mouse); new="off"; if [ "$old" = "off" ]; then new="on"; fi; tmux set -g mouse $new && tmux display-message toggle\ mouse\ mode\ $new' +## prefix C-x: pane sync bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}" +## prevent jumping to end after mouse selection bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x +## F12: passthru +bind -T root F12 set prefix None \; set key-table off \; set status-bg red \; refresh-client -S +bind -T off F12 set -u prefix \; set -u key-table \; set -u status-bg \; refresh-client -S # styles # status bar