customize tmux

This commit is contained in:
thek4n 2023-12-07 16:27:39 +03:00
parent a4ad253356
commit 5ef2891fd6

View File

@ -1,17 +1,25 @@
set -g prefix C-b
# pane navigation
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
bind -r C-h select-pane -L # move left
bind -r C-j select-pane -D # move down
bind -r C-k select-pane -U # move up
bind -r C-l select-pane -R # move right
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
bind -r C-n next-window
bind -r C-p previous-window
set-option -g status off
set -g status-bg black
set -g status-fg white
set -g status-right '%d.%m.%Y %H:%M'
set -g status-style 'bg=default,fg=white'
set -g window-status-style 'bg=default'
set -g window-status-current-style 'bg=white,fg=black bold'
set -g message-style 'fg=black bg=white bold'
set-option -g bell-action none
set -g mouse on
set-option -g repeat-time 0
@ -35,7 +43,7 @@ bind-key -T prefix C-x confirm-before -p "lock tmux? (y/n)" lock-session
bind-key C-v copy-mod
setw -g mode-keys vi
bind C-p paste-buffer
bind p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi c send-keys -X clear-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
@ -44,8 +52,5 @@ bind-key -T copy-mode-vi V send-keys -X rectangle-toggle
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
setw -g monitor-activity on
set -g visual-activity on
setw -g clock-mode-colour green
setw -g clock-mode-style 24