I would like different panes to appear in different background colors in my tmux session.
Is this possible?
You can set any pane's style using the
select-pane -P command.
You can combine this with other select-pane options for example
select-pane -t:.1 -P 'bg=red'
would set the first pane's background as red.
select-pane -P 'bg=red'
would set the current pane's background to red.
Unfortunately there is no obvious way to do it. I did a bit of research on the matter and what I ended up doing was changing the BASH prompt color instead of the background color. In my case it works well and helps me identify the different panes at a glance. Here are the two most helpful pages that I found on the subject:
I hope this helps you on your quest for knowledge :-)
Maybe you can change your colors 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