From de001db473a964e665045d89bead203152cb5db2 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 22 Mar 2023 12:31:08 +0100 Subject: [PATCH] tmux: Underline windows in status line when zoomed I sometimes forget that windows are in zoomed state as I was missing a visual indicator. Underline the window names in the status line to fix that. TODO: Move added code bit into a variable to prevent redundancy. I was not able to get it to be expanded, in contrast it would just insert the text literally. --- .config/tmux/tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index eb937e5..f65ccb1 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -198,8 +198,10 @@ set -g status-left "#{prefix_highlight}" set -g status-justify centre -set -g window-status-current-format "#[fg=#{@accent_color} bold]#I #W" -set -g window-status-format "#[fg=#{@ui_color}]#I #W" +set -g window-status-current-format \ + "#[fg=#{@accent_color} bold]#{?window_zoomed_flag,#[underscore],}#I #W" +set -g window-status-format \ + "#[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"