Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I set window title color in tmux 2.9a?

Tags:

statusbar

tmux

Following the upgrade to tmux version 2.9a, I had to update my configuration file as some of the settings had name changes. The colors for the window title section of my status bar no longer work. Here is that part of my configuration file:

# set color for status bar
set-option -g status-style bg=colour235
set-option -g status-style fg=yellow
set-option -g status-style dim

# set window title list colors
set-window-option -g window-status-style fg=brightblue
set-window-option -g window-status-style bg=colour236
set-window-option -g window-status-style dim

# active window title colors
set-window-option -g window-status-current-style fg=brightred
set-window-option -g window-status-current-style bg=colour236
set-window-option -g window-status-current-style bright

No matter what colors or brightness I select the title area of the status bar shows white text. My entire tmux configuration file is here: https://github.com/zanshin/dotfiles/blob/master/tmux/tmux.conf

like image 662
Mark Nichols Avatar asked Dec 02 '22 09:12

Mark Nichols


1 Answers

The syntax has changed slightly (I like the new one). You can now put multiple attribute on the same line separated with a comma.

With the new syntax, the configuration you've in your question became:

# set color for status bar
set-option -g status-style bg=colour235,fg=yellow,dim

# set window title list colors
set-window-option -g window-status-style fg=brightblue,bg=colour236,dim

# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=colour236,bright

For additiona information you can refer to tmux's FAQ

like image 184
pfmaggi Avatar answered Dec 15 '22 09:12

pfmaggi