tmux: new status-line

This commit is contained in:
Fernando Schauenburg 2025-07-04 00:31:05 +02:00
parent 396b03682a
commit bb4294df27

View file

@ -102,32 +102,42 @@ set-environment -gu SHLVL
# #
# Style (status list, colors, ...) # Style (status list, colors, ...)
# #
set -g status-left ' ' # 󰄴 󰣕 󰬫 󰻃 󰪥 󰬪    󰡖 󰄱 background="#1d2021"
set -g status-right '\ highlight="#b57614"
#[fg=brightblack] \ current_badge="#076678"
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pane_id}\ current_bg="#003848"
#[fg=brightblack]  \ current_fg="#83a598"
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{session_name}\ window_badge="#504945"
#[fg=brightblack]  \ window_fg="#7c6f64"
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pid} @ #{host_short} '
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-border-style fg=black
set -g pane-active-border-style fg=brightblue set -g pane-active-border-style fg=brightblue
set -g message-style fg=brightwhite,bg=black set -g message-style fg=brightwhite,bg=black
set -g message-command-style fg=yellow,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}"