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.

  • @jasonwryan I don't want to change the status bar foreground color but to make the current tab display a different background color. – Ionică Bizău Jun 17 '15 at 8:01

You haven't set window active background color, you only set active panel border, try:

set-window-option -g window-status-current-bg red
|improve this answer|||||
  • Still the same -- i.imgur.com/3AdyVZc.png – Ionică Bizău Jun 17 '15 at 8:06
  • Yes, I saved ~/.tmux.conf and started tmux in a new terminal. – Ionică Bizău Jun 17 '15 at 8:12
  • xterm-256color – Ionică Bizău Jun 17 '15 at 8:19
  • 1
    Also, for those wondering, you can set the foreground with set-window-option -g window-status-current-fg 'white' – laurent Nov 9 '17 at 11:36
  • 2
    if 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 – AntK Jun 16 '19 at 13:36

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

|improve this answer|||||
  • confirmed this works for 2.9a – imagineerThis Jun 24 '19 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.