Configure tmux bindings

This commit is contained in:
Şahin Akkaya 2022-04-06 22:13:00 +03:00
parent 8fbacc2fcf
commit ac84adb491

View File

@ -50,6 +50,11 @@ bind-key '\' split-window -h
bind-key _ split-window -fv
bind-key | split-window -fh
bind -r h resize-pane -L 5
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
# set -g lock-after-time 300
# set -g lock-command "asciiquarium"
@ -60,7 +65,7 @@ bind-key | split-window -fh
# bind-key -n q confirm-before kill-pane
# bind-key Q confirm-before kill-window
bind-key -n C-q confirm-before kill-pane
bind-key -n C-w confirm-before kill-window
# bind-key -n C-w confirm-before kill-window
# no prefix, just c-x
bind C-x setw synchronize-panes
@ -68,6 +73,10 @@ bind C-x setw synchronize-panes
# reorder windows
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
bind-key -n C-Up swap-pane -s '{up-of}'
bind-key -n C-Down swap-pane -s '{down-of}'
bind-key -n C-Left swap-pane -s '{left-of}'
bind-key -n C-Right swap-pane -s '{right-of}'
set -g default-terminal "tmux-256color"
# tell Tmux that outside terminal supports true color
@ -110,7 +119,7 @@ set -g status 'on'
set -g status-justify 'centre'
set -g status-style 'none'
set -g status-left-style 'none'
set -g status-left-length '100'
set -g status-left-length '20'
set -g status-right-style 'none'
set -g status-right-length '100'
set -g message-command-style fg='colour222',bg='colour238'
@ -151,7 +160,7 @@ set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
set -g @copycat_hash_search 'C-h'
set -g @copycat_ip_search 'M-i'
set -g @copytk-copy-command "xsel --clipboard"
set -g @menus_trigger 'h'
set -g @menus_trigger 't'
# set -g @pomodoro_start 'a' # Start a Pomodoro with tmux-prefix + p
# set -g @pomodoro_cancel 'A' # Cancel a Pomodoro with tmux-prefix key + P