[tmux] Improve copy mode, add F12 key toggle

This commit is contained in:
Fabian Ising
2023-07-17 11:12:48 +02:00
parent 4b9610dfb9
commit 4e6224981e

View File

@@ -10,6 +10,19 @@ bind-key C-a send-prefix
bind-key -n C-b send-keys C-b
#bind-key -n C-b send-prefix
# Use F12 to toggle hotekys on/off for nested remote tmux sessions
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=colour245,bg=colour238"\;\
refresh-client -S
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
set -u status-style \;\
refresh-client -S
setw -g mode-keys vi
set-option -g status-keys vi
@@ -62,6 +75,8 @@ set-window-option -g mode-keys vi
set-option -s set-clipboard on
set -g @yank_with_mouse off
set -g @yank_action 'copy-pipe'
bind-key -Tcopy-mode-vi 'C-right' send -X next-word
bind-key -Tcopy-mode-vi 'C-left' send -X previous-word
if '[ `uname` == Darwin ]' \
'source-file ~/.tmux/.mac_config'