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 # Toggle local tmux mappings to allow control remote tmux
bind -T root F12 \ bind -T root F12 {
set prefix None \;\ set prefix None
set key-table off \;\ set key-table off
set status off set status off
}
bind -T off F12 \ bind -T off F12 {
set -u prefix \;\ set -u prefix
set -u key-table \;\ set -u key-table
set status on set status on
}
## Toggle remote tmux mappings ## Toggle remote tmux mappings
bind F12 send-keys F12 bind F12 send-keys F12
@ -49,9 +51,12 @@ bind d detach
# Choose client to detach # Choose client to detach
bind D choose-client -Z bind D choose-client -Z
# Detach other clients # Detach other clients
bind C-d if -F '#{session_many_attached}' \ bind C-d if -F '#{session_many_attached}' {
'confirm-before -p "Detach other clients? (y/n)" "detach -a"' \ confirm-before -p "Detach other clients? (y/n)" "detach -a"
'display "Session has only 1 client attached"' } {
display "Session has only 1 client attached"
}
bind r command-prompt -I '#W' -p "New window name:" "rename-window '%%'" 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 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 # Windows navigation