From d11d4c3502e84e5283bbb542ec1a7c45e5b484bb Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 13 Dec 2019 15:00:22 +0530 Subject: [PATCH] tmux.conf: Update tmux conf --- tmux.conf | 54 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/tmux.conf b/tmux.conf index 8074735..5c042dc 100644 --- a/tmux.conf +++ b/tmux.conf @@ -83,32 +83,38 @@ bind 9 select-pane -t 9 set-option -g default-terminal "tmux-256color" set-option -sa terminal-overrides ',tmux-256color:RGB' -# Status Bar Colors -set-option -g status-attr dim -set-option -g status-bg colour237 # slightly brighter than molokai vim tabs -set-option -g status-fg colour187 # monokai yellow +run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V | \ + sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")' -# Window Title Tab Colors -set-window-option -g window-status-attr dim -set-window-option -g window-status-bg colour237 # brighter gray -set-window-option -g window-status-fg colour187 # monokai yellow -set-window-option -g window-status-current-attr dim -#set-window-option -g window-status-current-bg colour161 # monokai pink -#set-window-option -g window-status-current-fg '#000000' -set-window-option -g window-status-current-bg '#000000' -set-window-option -g window-status-current-fg colour161 # monokai pink +if-shell -b '[ "$(echo "$TMUX_VERSION < 2.9" | bc)" = 1 ]' " \ + set-option -g status-attr dim; \ + set-option -g status-bg colour237; \ + set-option -g status-fg colour187; \ + set-window-option -g window-status-attr dim; \ + set-window-option -g window-status-bg colour237; \ + set-window-option -g window-status-fg colour187; \ + set-window-option -g window-status-current-attr dim; \ + set-window-option -g window-status-current-bg '#000000'; \ + set-window-option -g window-status-current-fg colour161; \ + set-option -g pane-active-border-bg '#101010'; \ + set-option -g pane-active-border-fg '#87d700'; \ + set-option -g pane-border-bg '#101010'; \ + set-option -g pane-border-fg '#505050'; \ + set-option -g mode-bg '#000000'; \ + set-option -g mode-fg colour187; \ + set-option -g message-bg '#000000'; \ + set-option -g message-fg colour187; \ + " -# Pane Border Colors -set-option -g pane-active-border-bg '#101010' -set-option -g pane-active-border-fg '#87d700' # monokai-green -set-option -g pane-border-bg '#101010' -set-option -g pane-border-fg '#505050' - -# TODO: Not sure what these are. -set-option -g mode-bg '#000000' -set-option -g mode-fg colour187 # monokai yellow -set-option -g message-bg '#000000' -set-option -g message-fg colour187 # monokai yel +if-shell -b '[ "$(echo "$TMUX_VERSION > 2.9" | bc)" = 1 ]' " \ + set-option -g status-style fg=colour187,bg=colour237; \ + set-window-option -g window-status-style fg=colour187,bg=colour237; \ + set-window-option -g window-status-current-style fg=colour161,bg='#000000'; \ + set-option -g pane-border-style fg='#505050',bg='#101010'; \ + set-option -g pane-active-border-style fg='#87d700',bg='#101010'; \ + set-option -g mode-style fg=colour187,bg='#000000'; \ + set-option -g message-style fg=colour187,bg='#000000'; \ + " # Plugins run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'