tmux config

This commit is contained in:
thek4n 2024-03-27 02:01:00 +03:00
parent 790e2a871a
commit fbe838a2a9
3 changed files with 8 additions and 11 deletions

View File

@ -2,7 +2,6 @@
set -g prefix C-b set -g prefix C-b
# Zoom pane # Zoom pane
bind -n M-f resize-pane -Z bind -n M-f resize-pane -Z
@ -12,7 +11,6 @@ bind -n M-l select-pane -R
bind -n M-j select-pane -D bind -n M-j select-pane -D
bind -n M-k select-pane -U bind -n M-k select-pane -U
# Windows navigation # Windows navigation
bind -n C-M-h previous-window bind -n C-M-h previous-window
bind -n C-M-l next-window bind -n C-M-l next-window
@ -38,22 +36,24 @@ bind \\ split-window -v -c "#{pane_current_path}"
# Copy mode # Copy mode
setw -g mode-keys vi setw -g mode-keys vi
bind-key C-v copy-mod bind-key v copy-mode
bind 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 v send-keys -X begin-selection
bind-key -T copy-mode-vi c send-keys -X clear-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 bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi V send-keys -X rectangle-toggle bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi Escape send-keys -X cancel
bind-key -T copy-mode-vi C-c send-keys -X cancel
bind-key -T copy-mode-vi q send-keys -X cancel
# Lock screen # Lock screen
bind-key -T prefix C-x confirm-before -p "lock tmux? (y/n)" lock-session bind-key -T prefix l confirm-before -p "lock tmux? (y/n)" lock-session
# Reload config # Reload config
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..." bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
# Session managment # Session managment
bind 1 source-file ~/.tmux/01.conf bind 1 source-file ~/.tmux/01.conf
bind 2 source-file ~/.tmux/02.conf bind 2 source-file ~/.tmux/02.conf

View File

@ -1,9 +1,7 @@
# vim: ft=tmux # vim: ft=tmux
set -s exit-empty off # Server will not exit if no active sessions
set -s exit-unattached off # Server will not exit if no attached clients set -s exit-unattached off # Server will not exit if no attached clients
set -g mouse on # Enable mouse support set -g mouse on # Enable mouse support
set -s escape-time 0 # Delay after escape set -s escape-time 0 # Delay after escape
@ -15,7 +13,6 @@ set -g renumber-windows on # Make windows auto renumber
set -g history-limit 10000 # Scroll back history set -g history-limit 10000 # Scroll back history
setw -g aggressive-resize on # Resize windows on diff clients setw -g aggressive-resize on # Resize windows on diff clients
set -g display-panes-time 4000 # Increase show pane time set -g display-panes-time 4000 # Increase show pane time

View File

@ -20,7 +20,7 @@ set -g set-titles-string '#S:#I.#P #W'
# clock style # clock style
setw -g clock-mode-colour green setw -g clock-mode-colour white
setw -g clock-mode-style 24 setw -g clock-mode-style 24
set -g bell-action none set -g bell-action none