dotfiles/roles/tmux/files/tmux-colors.conf
Fernando Schauenburg 6b4f2ecf85 fix(tmux): changing background was ignored by tmux
When moving the configuration files to $XDG_CONFIG_HOME I forgot to
change the line in .bashrc that sources the tmux configuration so bash
was still trying to source ~/.tmux.conf, which no longer exists.

This commit fixes that. Additionally, the color setting code has been
factored out of tmux.conf into tmux-colors.conf (which can be sourced
from bash profile and tmux.conf). This way the rest of the code in
tmux.conf doesn't have to be executed again when changing the background
color.
2020-12-04 18:15:41 +01:00

16 lines
976 B
Text

# Default to solarized dark.
set -g status-fg colour3 # Yellow
set -g status-bg colour0 # Base02
setw -g window-status-style fg=colour12,bg=default # Base0 on Transparent
setw -g window-status-current-style fg=colour9,bg=default # Orange on Transparent
set -g pane-border-style fg=colour0 # Base02
set -g pane-active-border-style fg=colour14 # Base1
%if #{==:#{BACKGROUND},light}
set -g status-fg colour13 # Violet
set -g status-bg colour7 # Base2
setw -g window-status-style fg=colour11,bg=default # Base00 on Transparent
setw -g window-status-current-style fg=colour5,bg=default # Magenta on Transparent
set -g pane-border-style fg=colour7 # Base2
set -g pane-active-border-style fg=colour10 # Base01
%endif