Update tmux conf to make it compatible with tmux ver3+

This commit is contained in:
deflax 2020-08-10 15:59:29 +03:00 committed by GitHub
parent 850749f5aa
commit 338b705414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
# afx.tmux.conf 2017-2018 # afx.tmux.conf 2017-2020
# unbind all does not recover the default binds but we can list them # unbind all does not recover the default binds but we can list them
# and fill the 'gaps' with manual rebind in the conf file using this command: # and fill the 'gaps' with manual rebind in the conf file using this command:
@ -24,7 +24,7 @@ setw -g mode-keys vi
#setw -g mode-mouse off #tmux 1.9 #setw -g mode-mouse off #tmux 1.9
set-option -g mouse off #tmux 2.1 set-option -g mouse off #tmux 2.1
bind-key r source-file ~/.tmux.conf \; display-message "] afx' .tmux.conf v7.3 (⌐■_■) [" bind-key r source-file ~/.tmux.conf \; display-message "] afx' .tmux.conf v8.1 (⌐■_■) ["
bind-key R refresh-client bind-key R refresh-client
bind-key : command-prompt bind-key : command-prompt
@ -48,7 +48,7 @@ bind-key Escape copy-mode -u
bind-key Up copy-mode -u bind-key Up copy-mode -u
bind-key | split-window -h bind-key | split-window -h
bind-key \ split-window -h bind-key \\ split-window -h
bind-key = split-window -v bind-key = split-window -v
bind-key - split-window -v bind-key - split-window -v
#bind-key < swap-window -t :- #bind-key < swap-window -t :-
@ -95,35 +95,30 @@ set -g status-left ''
# Basic status bar colors # Basic status bar colors
set -g status-fg colour240 set -g status-fg colour240
set -g status-bg colour233 set -g status-bg colour233
set -g status-style bright
# Left side of status bar # Left side of status bar
set -g status-left-bg colour233
set -g status-left-fg colour243
set -g status-left-length 40 set -g status-left-length 40
set -g status-left "#[fg=colour232,bg=colour39,bold] #I:#P #[fg=colour233,bg=colour240] #(id -nu) " set -g status-left "#[fg=colour232,bg=colour39,bold] #I:#P #[fg=colour233,bg=colour240] #(id -nu) "
# Right side of status bar # Right side of status bar
set -g status-right-bg colour233
set -g status-right-fg colour243
set -g status-right-length 150 set -g status-right-length 150
set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] v7.3 " set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] v8.1 "
# Window status # Window status
set -g window-status-format " #I:#W#F " set -g window-status-format " #I:#W#F "
set -g window-status-current-format " #I:#W#F " set -g window-status-current-format " #I:#W#F "
# Current window status
set -g window-status-current-bg colour39
set -g window-status-current-fg colour232
# Window with activity status # Window with activity status
set -g window-status-activity-bg colour75 # fg and bg are flipped here due to #set-window-option -g window-status-current-style bright
set -g window-status-activity-fg colour233 # a bug in tmux set-window-option -g window-status-current-style fg=colour232
set-window-option -g window-status-current-style bg=colour2
# Window separator # Window separator
set -g window-status-separator "" set -g window-status-separator ""
# Window status alignment # Window status alignment
set -g status-justify centre set -g status-justify centre
# Pane border # Pane border
set -g pane-border-bg default set-option -g pane-active-border-style bg=default
set -g pane-border-fg colour238 set-option -g pane-active-border-style fg=colour238
# Active pane border # Active pane border
set -g pane-active-border-bg default set-option -g pane-active-border-style bg=default
set -g pane-active-border-fg colour39 set-option -g pane-active-border-style fg=colour39
# Pane number indicator # Pane number indicator
set -g display-panes-colour colour233 set -g display-panes-colour colour233
set -g display-panes-active-colour colour245 set -g display-panes-active-colour colour245
@ -131,11 +126,11 @@ set -g display-panes-active-colour colour245
set -g clock-mode-colour colour39 set -g clock-mode-colour colour39
set -g clock-mode-style 24 set -g clock-mode-style 24
# Message # Message
set -g message-bg colour39 set -g message-style bg=colour39
set -g message-fg black set -g message-style fg=red
# Command message # Command message
set -g message-command-bg colour233 set -g message-command-style bg=colour233
set -g message-command-fg black set -g message-command-style fg=red
# Mode # Mode
set -g mode-bg colour39 set -g mode-style bg=colour39
set -g mode-fg colour232 set -g mode-style fg=colour232