diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 8084e21..82f4008 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -102,32 +102,42 @@ 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="#1d2021" +highlight="#b57614" +current_badge="#076678" +current_bg="#003848" +current_fg="#83a598" +window_badge="#504945" +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-justify left +set -g status-left "" + +flags="#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}" + +setw -g window-status-format "\ +#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}} bold] #{window_index} \ +#[fg=#{?window_last_flag,${current_fg},${window_fg}} bg=${background} nobold] #{window_name} ${flags}\ +#[default] " + +setw -g window-status-current-format "\ +#[fg=${background} bg=#{?client_prefix,${highlight},${current_badge}} bold] #{window_index} \ +#[fg=${current_fg} bg=${current_bg} nobold] #{window_name} ${flags}\ +#[default] " + +box_begin="#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}} bold] " +box_mid="#[fg=${window_fg} bg=${background} nobold]" +box_end="#[default]" + +set -g status-right-length 64 +set -g status-right "\ +${box_begin}󰈷 ${box_mid} #{pane_id} ${box_end} \ +${box_begin} ${box_mid} #{session_name} ${box_end} \ +${box_begin} ${box_mid} #{pid} ${box_end} \ +${box_begin}󱡶 ${box_mid} #{host_short} ${box_end}"