dots/configs/.tmux.conf
2025-01-17 15:09:50 +03:00

89 lines
2.5 KiB
Bash

##=====INSTALL PLUGINS=====##
# Install plugin manager: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Instaling plugins: prefix + I
# Updating plugins: prefix + U
# Uninstalling plugins: prefix + alt + u
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @resurrect-strategy-nvim 'session'
#set -g @continuum-restore 'on'
##=====SETTINGS=====##
set -g mouse on
set-option -g prefix M-x
set -s escape-time 0
set-option -g set-clipboard on
set-option -g default-terminal "xterm-256color"
set -as terminal-features ",xterm-256color:RGB"
#set -g status-style 'bg=#ffffff fg=#000000'
set -g status-keys vi
set -g mode-keys vi
set -g history-limit 50000
set -g display-time 4000
set -g status-interval 5
set -g focus-events on
setw -g aggressive-resize on
set-option -g allow-rename off
set -g base-index 1
set -g pane-base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# rebind
bind r source-file ~/.tmux.conf
bind M-p previous-window
bind M-n next-window
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind -r M-k resize-pane -U
bind -r M-j resize-pane -D
bind -r M-h resize-pane -L
bind -r M-l resize-pane -R
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
##=====DESIGN TWEAKS=====##
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
set -g status-bg colour234
set -g status-fg colour137
set -g status-style dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour245,bold] [#S] #[fg=colour233,bg=colour241,bold] %d/%m/%y #[fg=colour233,bg=colour245,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style fg=colour81
setw -g window-status-current-style bg=colour238
setw -g window-status-current-style bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style fg=colour138
setw -g window-status-style bg=colour235
setw -g window-status-style none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style bold
setw -g window-status-bell-style fg=colour255
setw -g window-status-bell-style bg=colour1
# ##=====LOAD PLUGINS=====##
run '~/.tmux/plugins/tpm/tpm'