chore(tmux): update config

This commit is contained in:
2024-06-02 21:12:27 +03:00
parent c226943aa9
commit e54e202281

View File

@@ -47,6 +47,7 @@ bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind '"' split-window -v -c "#{pane_current_path}"
bind '!' split-window -h -c "#{pane_current_path}"
bind '^' switch-client -t'{marked}'
# synchronize all panes in a window
bind y setw synchronize-panes
@@ -70,9 +71,22 @@ bind p paste-buffer
# Setting status on
set -g status "on"
# Hide clock
set -g display-time 0
# Activity Monitoring (for when something happens in another pain)
set -g monitor-activity on
set -g visual-activity on
# Expose window title
set-option -g set-titles on
# Set bigger history limit
set -g history-limit 20000
# Keep Tmux alive when the initial command is finished
set -g remain-on-exit off
# Mouse support
set -g mouse on
@@ -92,7 +106,6 @@ set-window-option -g mode-keys vi
# │ Theme │
# ╰──────────────────────────────────────────────────────────╯
# Make sure status sides are long enough and centered is in the middle
set -g status-left-length "0"
set -g status-right-length "30"
@@ -105,7 +118,9 @@ set-option -g window-status-format ' #I:#W '
set-window-option -g window-status-current-style 'fg=#111111,bg=#7aa2f7'
set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag,  , } '
set-option -g status-right "#{hostname_short}/#S %H:%M #{tmux_mode_indicator}"
set-option -g status-right "#{hostname_short}/#S #{tmux_mode_indicator}"
set -g message-style 'fg=colour2 bg=colour0 bold'
# ╭──────────────────────────────────────────────────────────╮
# │ Plugins related configurations │
@@ -125,6 +140,7 @@ set -g @tmux_window_name_use_tilde "True"
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
set -g @tmux_window_name_ignored_programs "['sqlite3', 'x-set-php-aliases']" # Default is []
set -g @tmux_window_name_substitute_sets "[('.+ipython2', 'ipython2'), ('.+ipython3', 'ipython3')]"
## https://github.com/tmux-plugins/tmux-continuum
set -g @continuum-restore 'on'