feat(tmux): dim inactive panes (window-style / window-active-style)

Inactive panes get fg=colour247,bg=colour234, the active one keeps the
terminal default. Only default-coloured cells change, so coloured
output and vim's own background are untouched.
This commit is contained in:
bchanot
2026-10-07 12:13:28 +02:00
parent 6b634e2c77
commit ccc220fc69
+6
View File
@@ -280,6 +280,12 @@ set -g status-right '#{sep_b} #h #{sep_e}#{sep_on} : #{continuum_status} '
set -g pane-active-border-style fg=white,bg=white set -g pane-active-border-style fg=white,bg=white
set -g pane-border-style fg=white,bg=default set -g pane-border-style fg=white,bg=default
# Dim inactive panes: only cells in "default" colour change (coloured text and
# vim's own background stay as they are); the active pane keeps the terminal
# background. Needs tmux >= 2.1.
set -g window-style fg=colour247,bg=colour234
set -g window-active-style fg=default,bg=default
# set Message text # set Message text
set-option -g message-style bg=default,fg=red set-option -g message-style bg=default,fg=red
set-option -g message-command-style bg=default,fg=brightwhite set-option -g message-command-style bg=default,fg=brightwhite