35

I've used the following command to change the color of the status bar at the bottom of the screen:

set -g status-bg colour244

But I don't know how to change the color of the lines that divide the panes; currently, they're a mix of the original green and gray (color244). man tmux gives me a lot of info about the status line but this seems to refer to the status bar itself, not the dividing lines.

I suspect I'm just missing some terminology here.

46

You want pane-active-border-style and pane-border-style:

See the entry in the man page:

pane-active-border-style style
Set the pane border style for the currently active pane. For how to specify style, see the message-command-style option. Attributes are ignored.

pane-border-style style
Set the pane border style for pane as aside from the active pane. For how to specify style, see the message-command-style option. Attributes are ignored.

So, in your ~/.tmux.conf you could specify colours like so:

# border colours
set -g pane-border-style fg=magenta
set -g pane-active-border-style fg=magenta
set -g pane-active-border-style bg=default

Note, I use tmux 1.9a, and I find I get more consistent behaviour using:

set -g pane-border-fg magenta
set -g pane-active-border-fg green
set -g pane-active-border-bg default
1

As of tmux version 2.9 @jasonwryan 's implementation is reduced to two lines:

set -g pane-active-border-style bg=default,fg=magenta
set -g pane-border-style fg=green

Note lack of spacing between bg and fg declarations

Source

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.