Update tmux2k.sh

This commit is contained in:
Technofab 2024-11-26 17:46:17 +01:00 committed by GitHub
parent 68e3895435
commit 0d12194bce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,15 +252,15 @@ window_list() {
fi
if $show_flags; then
flags="#{?window_flags,#[fg=${light_red}]#{window_flags},}"
current_flags="#{?window_flags,#[fg=${light_green}]#{window_flags},}"
flags="#{?window_flags,#{window_flags},}"
current_flags="#{?window_flags,#{window_flags},}"
fi
if $show_powerline; then
tmux set-window-option -g window-status-current-format \
"#[fg=${wfg},bg=${bg_main}]${wl_sep}#[bg=${wfg}]${current_flags}#[fg=${wbg}]${spacer}#I:#W${spacer}#[fg=${wfg},bg=${bg_main}]${wr_sep}"
"#[fg=${wfg},bg=${bg_main}]${wl_sep}#[fg=${wbg},bg=${wfg}]${current_flags}${spacer}#I:#W${spacer}#[fg=${wfg},bg=${bg_main}]${wr_sep}"
tmux set-window-option -g window-status-format \
"#[fg=${bg_alt},bg=${bg_main}]${wl_sep}#[bg=${bg_alt}]${flags}#[fg=${white}]${spacer}#I:#W${spacer}#[fg=${bg_alt},bg=${bg_main}]${wr_sep}"
"#[fg=${bg_alt},bg=${bg_main}]${wl_sep}#[fg=${white},bg=${bg_alt}]${flags}${spacer}#I:#W${spacer}#[fg=${bg_alt},bg=${bg_main}]${wr_sep}"
else
tmux set-window-option -g window-status-current-format "#[fg=${wbg},bg=${wfg}] #I:#W${spacer}${current_flags} "
tmux set-window-option -g window-status-format "#[fg=${white},bg=${bg_alt}] #I:#W${spacer}${flags} "