From dea0ff311e06f38eba5daa278deab2ed3459db17 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 4 Jul 2025 00:31:05 +0200 Subject: [PATCH] tmux: new rounded status-line --- config/tmux/tmux.conf | 59 +++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 8084e21..55b530a 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -102,32 +102,43 @@ set-environment -gu SHLVL # # Style (status list, colors, ...) # -set -g status-left ' ' # 󰄴 󰣕 󰬫 󰻃 󰪥 󰬪    󰡖 󰄱 -set -g status-right '\ -#[fg=brightblack] \ -#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pane_id}\ -#[fg=brightblack]  \ -#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{session_name}\ -#[fg=brightblack]  \ -#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pid} @ #{host_short} ' +background="#131516" +prefix="#b57614" +current_badge="#076678" +current_bg="#003848" +current_fg="#83a598" +window_badge="#665c54" +window_bg="#282828" +window_fg="#7c6f64" -setw -g window-status-current-format '\ -#{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}#{window_index} \ -#[bold]#[fg=blue]#{window_name}#[nobold] \ -#{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}\ -#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\ -#[fg=brightblack]' - -setw -g window-status-format '\ -#{?client_prefix,#[fg=brightyellow],#{?window_last_flag,#[fg=cyan],#[fg=brightblack]}}\ -#{window_index} \ -#[fg=brightblack]#{window_name} \ -#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\ -#[fg=brightblack]' - -set -g status-justify left -set -g status-style fg=white,bg=black set -g pane-border-style fg=black set -g pane-active-border-style fg=brightblue set -g message-style fg=brightwhite,bg=black set -g message-command-style fg=yellow,bg=black + +set -g status-style bg=$background +set -g status-left " " # 󰄴 󰣕 󰬫 󰻃 󰪥 󰬪    󰡖 󰄱 +set -g status-justify left + +flags="#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}" + +setw -g window-status-format "\ +#[fg=#{?client_prefix,$prefix,$window_badge}]#[reverse]#{window_index} #[noreverse]\ +#[fg=#{?window_last_flag,$current_fg,$window_fg} bg=$window_bg] #{window_name} $flags\ +#[fg=$window_bg bg=$background] " + +setw -g window-status-current-format "\ +#[fg=#{?client_prefix,$prefix,$current_badge}]#[reverse]#{window_index} #[noreverse]\ +#[fg=$current_fg bg=$current_bg] #{window_name} $flags\ +#[fg=$current_bg bg=$background] " + +pill_begin="#[fg=#{?client_prefix,$prefix,$window_badge}]#[reverse]" +pill_mid="#[noreverse]#[fg=$window_fg bg=$window_bg]" +pill_end="#[fg=$window_bg bg=$background]" + +set -g status-right-length 64 +set -g status-right "\ +${pill_begin}󰈷 $pill_mid #{pane_id}$pill_end \ +${pill_begin} $pill_mid #{session_name}$pill_end \ +${pill_begin} $pill_mid #{pid}$pill_end \ +${pill_begin}󱡶 $pill_mid #{host_short}$pill_end "