The Computer Oracle

Tmux current pane border not obvious

--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------

Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
00:32 Accepted answer (Score 9)
00:57 Answer 2 (Score 18)
01:46 Answer 3 (Score 10)
02:18 Answer 4 (Score 1)
02:55 Thank you

--

Full question
https://superuser.com/questions/547883/t...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#bash #tmux

#avk47



ANSWER 1

Score 18


I think I've finally found a way that makes it really clear for me. Using the following in the .tmux.conf.

set -g window-style 'fg=black,bg=colour253'
set -g window-active-style 'fg=colour234,bg=colour231'

I get the focused / active window in lighter color and the non-focused / inactive ones a bit grayed out.

I've tweaked my color palette a lot, but using your favorite colors (note the british spelling in the tmux.conf) should allow for adjustments.

Example of active (lower right corner) vs inactive:

example of active vs in-active




ANSWER 2

Score 10


Good question; I wish I had a better answer. The display-panes command (C-b q by default) shows the active pane with a red number. Given only two panes, you still have to remember that red is active, blue is inactive.

If you set display-panes-color to something with low constrast with your background color, it will be less visible than the (by default) red active pane number.




ACCEPTED ANSWER

Score 9


This issue is resolved in the current version of tmux. When there are only two splits the upper/lower half of the split line is colored to indicate that the left/right split is active

enter image description here




ANSWER 4

Score 1


If you're using @chepner's answer, you can improve your experience by binding Alt + q to display panes for custom milliseconds in your tmux.conf using:

bind -n M-q display-panes -d 300

where 300 is the amount of milliseconds in my case

It is better than just sending the display-panes command with the default combination (C-b q by default) because is quicker to launch and last for a custom time