Skip to content

Commit

Permalink
tmux 2.9 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
napalm255 committed Jul 16, 2019
1 parent 546c282 commit 775600d
Showing 1 changed file with 19 additions and 31 deletions.
50 changes: 19 additions & 31 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set-window-option -g allow-rename off
set-window-option -g automatic-rename off

# add prefix key of ctrl-a
set -g prefix2 C-a
set-option -g prefix2 C-a
bind C-a send-prefix -2

# status
Expand All @@ -27,30 +27,18 @@ set-option -g status-keys vi
set-option -g display-time 2000

# color
set-option -g status-fg colour136
set-option -g status-bg colour236
set-option -g status-attr default

set-window-option -g window-status-attr none
set-window-option -g window-status-bg colour238
set-window-option -g window-status-fg colour136
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour236,reverse]"
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"

set-window-option -g window-status-current-attr none
set-window-option -g window-status-current-bg colour33
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-format "#[fg=colour236]#[default,fg=colour231,bold] #I #[default,fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236]#[default,bold] #I #[fg=colour117,reverse]#[default]#[bg=colour117] #W #[fg=colour236,reverse]"

set-option -g pane-border-fg colour235
set-option -g pane-active-border-fg colour240

set-option -g message-bg colour235
set-option -g message-fg colour166

set-option -g pane-border-style fg=colour235
set-option -g pane-active-border-style fg=colour240
set-option -g message-style fg=colour166,bg=colour235
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
set-option -g status-style fg=colour136,bg=colour236,default
set-option -g window-status-style fg=colour136,bg=colour238,none
set-option -g window-status-current-style fg=black,bg=colour23,none

# tab format
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour52]#[nounderscore] #[default]#[fg=colour231,bg=colour52]#W#[nounderscore] #[fg=colour236,reverse]"

# reload settings
bind-key R \
Expand All @@ -70,15 +58,15 @@ bind-key K kill-session
# Mouse mode toggle
bind M \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
set-option -g mode-mouse on \;\
set-option -g mouse-resize-pane on \;\
set-option -g mouse-select-pane on \;\
set-option -g mouse-select-window on \;\
display 'Mouse: ON'
bind m \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
set-option -g mode-mouse off \;\
set-option -g mouse-resize-pane off \;\
set-option -g mouse-select-pane off \;\
set-option -g mouse-select-window off \;\
display 'Mouse: OFF'

0 comments on commit 775600d

Please sign in to comment.