From ccc220fc69418bb983a14f39bd02b704d3c13119 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 7 Oct 2026 12:13:28 +0200 Subject: [PATCH 1/3] 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 From 08ad4ddbfee11515e9ac892531141795ff2784b2 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 7 Oct 2026 12:23:57 +0200 Subject: [PATCH 2/3] fix(tmux): dim colours tuned for the iTerm2 dark profile window-active-style must repeat the terminal colours: "default" there inherits window-style since tmux 3, so the active pane was dimmed too. Inactive panes lightened to #353d48 / #a6acb6, visible against the #15191f background. --- tmux.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tmux.conf b/tmux.conf index a18706e..bcda2e9 100644 --- a/tmux.conf +++ b/tmux.conf @@ -281,10 +281,12 @@ 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 +# vim's own background stay as they are). The active style must repeat the +# terminal colours: since tmux 3, "default" there inherits window-style, so +# the active pane would be dimmed too. Values = iTerm2 Default profile, dark +# mode (fg #dcdcdc, bg #15191f); a light theme needs the opposite. +set -g window-style fg=#a6acb6,bg=#353d48 +set -g window-active-style fg=#dcdcdc,bg=#15191f # set Message text set-option -g message-style bg=default,fg=red From 6f0f6c1fa3406060881b318e4ea20ade86b28d60 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 7 Oct 2026 12:23:58 +0200 Subject: [PATCH 3/3] =?UTF-8?q?chore(memory):=20journal=20=E2=80=94=20tmux?= =?UTF-8?q?=20dim=20inactive=20panes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/memory/journal.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index a2a4207..9068865 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -111,3 +111,6 @@ Done: copy-mode-vi table had stock C-h cursor-left, C-u halfpage-up, C-j copy, s ## 2026-10-06 (pm, 8) — tmux drag "syntax error" in claude panes Done: MouseDrag1Pane binding had `\"` inside '...' (literal since tmux 3.0); branch for mouse-tracking panes (claude fullscreen, vim mouse=a) failed to parse → "syntax error", no selection. Backslashes dropped, pitfall noted in conf. Deployed to ~/.config/tmux/tmux.conf + source-file, live binding verified (`forwarded-to-app`). Merged bugfix/tmux-drag-syntax-error → develop (2245247). Closes the "deployed conf stale" open item. + +## 2026-10-07 — tmux dim inactive panes +Done: window-style / window-active-style added. Two traps: colour234 ≈ iTerm2 dark bg (#15191f) → invisible; `window-active-style bg=default` inherits window-style since tmux 3 → active pane dimmed too, terminal colours hardcoded instead (fg #dcdcdc, bg #15191f). Inactive settled at #353d48 / #a6acb6 after 3 live rounds. Light macOS theme would need the inverse. Merged feature/tmux-dim-inactive-panes → develop.