Tmux current pane border not obvious
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping
--
Chapters
00:00 Tmux Current Pane Border Not Obvious
00:18 Answer 1 Score 10
00:41 Accepted Answer Score 9
00:58 Answer 3 Score 18
01:31 Answer 4 Score 1
01:57 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:
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
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