olleicua
olleicua

Reputation: 2118

Tmux transparent status bar

I'm not sure it this is possible but I use a graphical terminal emulator that has a translucent background so I can see the GUI windows behind it (in this case tinted a shade of blue). I want my status Line to have this as its background color.

Upvotes: 32

Views: 28449

Answers (3)

X.Arthur
X.Arthur

Reputation: 306

The answers are a bit outdated.

For v3.2, if you want to change both the fg and bg you need to do it in one command:

set -g status-style "fg=white bg=color237"

Upvotes: 2

olleicua
olleicua

Reputation: 2118

I was able to find this useful example: http://jasonwryan.com/blog/2010/01/07/tmux-terminal-multiplexer/

And it used the color default.

so what I wanted was:

set status-bg default

EDIT: this might not work in newer versions of tmux, see other answers below

Upvotes: 61

Alain
Alain

Reputation: 611

The accepted answer from olleicua (to be more specific, the comment from sammy) stopped working for me as of tmux 3.2.

I changed the line to the following and now it's working again:

set-option -g status-style bg=default

The "3.2 questions and comments" thread on the official github page explains why this is the case:

status-fg and status-bg are now applied before status-style rather than instead of; this means that if either is set to default the status-style colour will be used. To fix, replace status-bg default with status-style bg=default.

Upvotes: 51

Related Questions