How can you tell which pane in Tmux is focused?

dan picture dan · Feb 3, 2011 · Viewed 34.1k times · Source

I'm starting to use tmux (I'm thinking of switching from screen), but I'm having a hard time telling which pane is focused when I split a window into multiple panes. Is there a config customization or something that can highlight the focused pane a little more explicitly?

Answer

Alan Christopher Thomas picture Alan Christopher Thomas · Feb 3, 2011

Here are the relevant settings:

pane-active-border-bg colour

pane-active-border-fg colour
    Set the pane border colour for the currently active pane.

So, try adding something like this to your ~/.tmux.conf:

set-option -g pane-active-border-fg blue

That will set a blue border around the active pane. The pane-active-border-bg option can be used for a more visible solution, as well.