ref(tmux)

This commit is contained in:
thek4n 2024-05-27 13:29:06 +03:00
parent a74eda0825
commit 634f0dee30

View File

@ -6,15 +6,17 @@ bind C-b send-prefix
# Toggle local tmux mappings to allow control remote tmux
bind -T root F12 \
set prefix None \;\
set key-table off \;\
bind -T root F12 {
set prefix None
set key-table off
set status off
}
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
bind -T off F12 {
set -u prefix
set -u key-table
set status on
}
## Toggle remote tmux mappings
bind F12 send-keys F12
@ -49,9 +51,12 @@ bind d detach
# Choose client to detach
bind D choose-client -Z
# Detach other clients
bind C-d if -F '#{session_many_attached}' \
'confirm-before -p "Detach other clients? (y/n)" "detach -a"' \
'display "Session has only 1 client attached"'
bind C-d if -F '#{session_many_attached}' {
confirm-before -p "Detach other clients? (y/n)" "detach -a"
} {
display "Session has only 1 client attached"
}
bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'"
@ -108,7 +113,12 @@ bind o if -F '#{pane_synchronized}' 'setw synchronize-panes off' 'setw synchroni
bind O setw synchronize-panes off
bind i "set -g display-time $_tmux_display_panes_time \; display-message \; display-panes \; set -g display-time $_tmux_display_time"
bind i {
set -g display-time $_tmux_display_panes_time
display-message
display-panes
set -g display-time $_tmux_display_time
}
# Windows navigation