From ccc220fc69418bb983a14f39bd02b704d3c13119 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 7 Oct 2026 12:13:28 +0200 Subject: [PATCH] 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. --- tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmux.conf b/tmux.conf index 6b76418..a18706e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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-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-option -g message-style bg=default,fg=red set-option -g message-command-style bg=default,fg=brightwhite