From cbda5efd3cbc14731fd4eeb04fe329e9ceeba8e1 Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Fri, 3 Jul 2026 17:34:22 -0700 Subject: [PATCH] Add tmux selection highlight for nested sessions --- config/tmux.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/tmux.conf b/config/tmux.conf index 0cb0a49..bfa6914 100644 --- a/config/tmux.conf +++ b/config/tmux.conf @@ -69,6 +69,18 @@ bind r source-file ~/.tmux.conf \; display "Reloaded config" run-shell "command -v powerline-daemon >/dev/null 2>&1 && powerline-daemon -q; true" run-shell "command -v powerline-config >/dev/null 2>&1 && powerline-config tmux setup; true" +# ---------------------------------------------------------------------------- +# Status bar +# ---------------------------------------------------------------------------- +# Flash the status bar when this client's prefix key is armed, so nested +# tmux sessions (e.g. laptop -> ssh -> devbox tmux) make it obvious which +# layer is about to receive the next keystroke. Falls back to whatever +# status-style powerline set above (captured here) the rest of the time. +# Colors match gruvbox's own visual/selection convention (bg0 on orange). +set -g @status_style_armed "bg=#fe8019,fg=#282828" +run-shell 'tmux set-option -g @status_style_normal "$(tmux show-options -gv status-style)"' +set -g status-style "#{?client_prefix,#{@status_style_armed},#{@status_style_normal}}" + # ---------------------------------------------------------------------------- # Plugins (TPM) # ----------------------------------------------------------------------------