Respect status_background
in message-style
(#193)
* respect status background in message style * move message_background to existing block
This commit is contained in:
parent
b26eb2fa6d
commit
69d37dfbb0
1 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,7 @@ main() {
|
||||||
done <"${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme"
|
done <"${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme"
|
||||||
|
|
||||||
# status general
|
# status general
|
||||||
local status_default status_justify status_background
|
local status_default status_justify status_background message_background
|
||||||
status_default=$(get_tmux_option "@catppuccin_status_default" "on")
|
status_default=$(get_tmux_option "@catppuccin_status_default" "on")
|
||||||
# shellcheck disable=SC2121
|
# shellcheck disable=SC2121
|
||||||
set status "$status_default"
|
set status "$status_default"
|
||||||
|
@ -56,11 +56,14 @@ main() {
|
||||||
status_background=$(get_tmux_option "@catppuccin_status_background" "theme")
|
status_background=$(get_tmux_option "@catppuccin_status_background" "theme")
|
||||||
if [ "${status_background}" = "theme" ]; then
|
if [ "${status_background}" = "theme" ]; then
|
||||||
set status-bg "${thm_bg}"
|
set status-bg "${thm_bg}"
|
||||||
|
message_background="${thm_gray}"
|
||||||
else
|
else
|
||||||
if [ "${status_background}" = "default" ]; then
|
if [ "${status_background}" = "default" ]; then
|
||||||
set status-style bg=default
|
set status-style bg=default
|
||||||
|
message_background="default"
|
||||||
else
|
else
|
||||||
set status-bg "${status_background}"
|
set status-bg "${status_background}"
|
||||||
|
message_background="${status_background}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -68,8 +71,8 @@ main() {
|
||||||
set status-right-length "100"
|
set status-right-length "100"
|
||||||
|
|
||||||
# messages
|
# messages
|
||||||
set message-style "fg=${thm_cyan},bg=${thm_gray},align=centre"
|
set message-style "fg=${thm_cyan},bg=${message_background},align=centre"
|
||||||
set message-command-style "fg=${thm_cyan},bg=${thm_gray},align=centre"
|
set message-command-style "fg=${thm_cyan},bg=${message_background},align=centre"
|
||||||
|
|
||||||
# panes
|
# panes
|
||||||
local pane_border_status pane_border_style \
|
local pane_border_status pane_border_style \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue