From dc24dea0de56306647df1f40372f88de3fdb6e13 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 21 Mar 2024 15:50:08 +0100 Subject: [PATCH] tmux: Highlight zoomed pane in status more Additionally to underlining it, highlight it by using a yellow background. --- .config/tmux/tmux.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index d1fb20b..f504d15 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -306,14 +306,12 @@ set -g status-left "#{prefix_highlight}" set -g status-justify centre -# Display window_index and window_name as status and underline it when the +# Display window_index and window_name as status and highlight it when the # active pane is zoomed. -%hidden window_status='#{?window_zoomed_flag,#[underscore],}#I #W' set -g window-status-current-format \ - "#[fg=#{@accent_color} bold]"$window_status + "#{?window_zoomed_flag,#[fg=#{@text_fg} bg=#{@accent_color} underscore],#[fg=#{@accent_color} bold]}#I #W" set -g window-status-format \ - "#[fg=#{@ui_color}]"$window_status -setenv -ghu window_status + "#[fg=#{@ui_color}]#{?window_zoomed_flag,#[underscore],}#I #W" # Initialize TMUX plugin manager. Keep this line at the very bottom. run -b "$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm"