tmux/Q/How can I put a thick border around the focused pane?
How can I put a thick border around the focused pane in tmux?
- It's difficult to figure out which pane has focus.
My Answer
- I prefer to type these out, rather than put them in my tmux.conf, just because they are easy to forget and I only have to do them once per tmux server start
AI Answer
Going Further: Making Focus Impossible to Miss
- Heavy borders alone are still pretty subtle, especially in dense multi-pane layouts. Thick lines alone don't change enough visual contrast.
- For "impossible to miss" focus, stack multiple signals:
- That last trick (dim others) is dramatically more legible.
Tier 1 — Strong border + high-contrast color
Tier 2 — Fill the entire active pane background (huge improvement)
Tier 3 — Add explicit focus markers (arrows)
Tier 4 — Big "FOCUS" tag in the border (very obvious)
Tier 5 — Extreme (best for dense layouts)
- Combine dimming + bright border + title:
set -g pane-border-lines heavy set -g pane-border-style fg=colour238 set -g pane-active-border-style fg=colour226,bold set -g window-style fg=colour245,bg=colour234 set -g window-active-style fg=colour255,bg=colour236 set -g pane-border-indicators both set -g pane-border-format "#{?pane_active,#[bold fg=black bg=colour226] ● ACTIVE #[default], }"
- This gives you:
- It's almost impossible to lose track of focus.
- Combine dimming + bright border + title:
Bonus: focus flash when switching panes
Practical recommendation
Related