Set the active tmux tab color
Solution 1
You haven't set window active background color, you only set active panel border, try:
set-window-option -g window-status-current-bg red
Solution 2
In version 3.3 use the answer in comment provided here by @AntK.
set-window-option -g window-status-current-style bg=red
In version 2.9 You should change this options to something like:
# Active window title color
setw -g window-status-current-style fg=black,bg=white
There's an argument with a decent explanation here: https://github.com/tmux/tmux/issues/1689
And the FAQ: https://github.com/tmux/tmux/wiki/FAQ#how-do-i-translate--fg--bg-and--attr-options-into--style-options
Related videos on Youtube
Ionică Bizău
💻 Programmer ⚡️ Geek 🎹 Pianist & Organist 🚀 Learner 💡 Mentor 💫 Dreamer 🍏 Vegetarian 🙏 Jesus follower Website | GitHub | Twitter | PayPal Donations
Updated on September 18, 2022Comments
-
Ionică Bizău over 1 year
Is it possible to change the background of the active (current) tmux tab?
I'm using
tmux 1.9
on Ubuntu 15.04.$ tmux -V tmux 1.9
I tried to do:
set-option -g pane-active-border-fg red
But the result was not changed:
I expected the
3-bash*
to have a red background. -
Ionică Bizău almost 9 yearsStill the same -- i.imgur.com/3AdyVZc.png
-
Ionică Bizău almost 9 yearsYes, I saved
~/.tmux.conf
and startedtmux
in a new terminal. -
Ionică Bizău almost 9 years
xterm-256color
-
Ionică Bizău almost 9 yearsConfirming that after restarting my machine this works! Thanks a lot!
-
nacholibre almost 7 yearsOr you can run
tmux source-file ~/.tmux.conf
to reload the tmux conf without restart. -
laurent over 6 yearsAlso, for those wondering, you can set the foreground with
set-window-option -g window-status-current-fg 'white'
-
OmPS over 6 yearsthis works. :) what is the file entry?
-
AntK almost 5 yearsif you're looking at this post tmux v2.9 this option will look like so
set-window-option -g window-status-current-style bg=red
-
imagineerThis almost 5 yearsconfirmed this works for 2.9a
-
KhaimovMR over 3 yearsthanks. that's the actual way to set those colors
-
vishless about 3 yearsThis throws syntax error in next-3.3. @AntK's solution worked fine
-
alexzander almost 3 yearsthis config
set-window-option -g window-status-current-style bg=red
works intmux 3.2