mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
chore: improve colors
This commit is contained in:
parent
be70e2e352
commit
d24ce36859
1 changed files with 5 additions and 4 deletions
|
|
@ -50,6 +50,7 @@ declare -A plugin_colors=(
|
||||||
["time"]="light_blue text"
|
["time"]="light_blue text"
|
||||||
["pomodoro"]="red text"
|
["pomodoro"]="red text"
|
||||||
["window"]="bg_main blue"
|
["window"]="bg_main blue"
|
||||||
|
["current"]="bg_main blue"
|
||||||
)
|
)
|
||||||
|
|
||||||
get_plugin_colors() {
|
get_plugin_colors() {
|
||||||
|
|
@ -167,6 +168,7 @@ set_theme() {
|
||||||
["time"]="text light_blue"
|
["time"]="text light_blue"
|
||||||
["pomodoro"]="text red"
|
["pomodoro"]="text red"
|
||||||
["window"]="blue bg_main"
|
["window"]="blue bg_main"
|
||||||
|
["current"]="blue bg_main"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -195,8 +197,7 @@ start_icon() {
|
||||||
window) start_icon=" #W" ;;
|
window) start_icon=" #W" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
first_plugin=${lplugins[0]}
|
IFS=' ' read -r -a first_colors <<<"$(get_plugin_colors "current")"
|
||||||
IFS=' ' read -r -a first_colors <<<"$(get_plugin_colors "$first_plugin")"
|
|
||||||
tmux set-option -g status-left "#[bg=${!first_colors[0]},fg=${!first_colors[1]}]#{?client_prefix,#[bg=${light_yellow},} ${start_icon} "
|
tmux set-option -g status-left "#[bg=${!first_colors[0]},fg=${!first_colors[1]}]#{?client_prefix,#[bg=${light_yellow},} ${start_icon} "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -257,9 +258,9 @@ window_list() {
|
||||||
|
|
||||||
if $show_powerline; then
|
if $show_powerline; then
|
||||||
tmux set-window-option -g window-status-current-format \
|
tmux set-window-option -g window-status-current-format \
|
||||||
"#[fg=${wfg},bg=${wbg}]${wl_sep}#[bg=${wfg}]${current_flags}#[fg=${wbg}]${spacer}#I:#W${spacer}#[fg=${wfg},bg=${wbg}]${wr_sep}"
|
"#[fg=${wfg},bg=bg_main]${wl_sep}#[bg=${wfg}]${current_flags}#[fg=${wbg}]${spacer}#I:#W${spacer}#[fg=${wfg},bg=bg_main]${wr_sep}"
|
||||||
tmux set-window-option -g window-status-format \
|
tmux set-window-option -g window-status-format \
|
||||||
"#[fg=${bg_alt},bg=${wbg}]${wl_sep}#[bg=${bg_alt}]${flags}#[fg=${white}]${spacer}#I:#W${spacer}#[fg=${bg_alt},bg=${wbg}]${wr_sep}"
|
"#[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}"
|
||||||
else
|
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-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} "
|
tmux set-window-option -g window-status-format "#[fg=${white},bg=${bg_alt}] #I:#W${spacer}${flags} "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue