tmux: Highlight zoomed pane in status more

Additionally to underlining it, highlight it by using a yellow
background.
This commit is contained in:
2024-03-21 15:50:08 +01:00
parent 83945840b8
commit dc24dea0de

View File

@@ -306,14 +306,12 @@ set -g status-left "#{prefix_highlight}"
set -g status-justify centre 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. # active pane is zoomed.
%hidden window_status='#{?window_zoomed_flag,#[underscore],}#I #W'
set -g window-status-current-format \ 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 \ set -g window-status-format \
"#[fg=#{@ui_color}]"$window_status "#[fg=#{@ui_color}]#{?window_zoomed_flag,#[underscore],}#I #W"
setenv -ghu window_status
# Initialize TMUX plugin manager. Keep this line at the very bottom. # Initialize TMUX plugin manager. Keep this line at the very bottom.
run -b "$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm" run -b "$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm"