feat(modules): bug fix and add inverse collor option for status right separator
This commit is contained in:
parent
3b4bf404db
commit
703c2f7f0a
4 changed files with 13 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
show_host() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_host_icon" "")"
|
||||
local color="$(get_tmux_option "@catppuccin_host_color" "$thm_blue")"
|
||||
local color="$(get_tmux_option "@catppuccin_host_color" "$thm_magenta")"
|
||||
local text="$(get_tmux_option "@catppuccin_host_text" "#H")"
|
||||
|
||||
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
show_session() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_session_icon" "")"
|
||||
local text="$(get_tmux_option "@catppuccin_host_text" "#S")"
|
||||
local text="$(get_tmux_option "@catppuccin_session_text" "#S")"
|
||||
|
||||
if [[ $index -eq 0 || $status_connect_separator == "no" ]]
|
||||
then
|
||||
|
@ -24,5 +24,10 @@ show_session() {
|
|||
local show_right_separator="#[fg=$thm_green]#[bg=$thm_bg]#{?client_prefix,#[fg=$thm_red],#[fg=$thm_green]}$status_right_separator"
|
||||
fi
|
||||
|
||||
if [[ $status_right_separator_inverse == "yes" ]]
|
||||
then
|
||||
local show_right_separator="#[fg=$thm_bg]$status_right_separator"
|
||||
fi
|
||||
|
||||
echo "$show_left_separator$show_icon$show_text$show_right_separator"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
show_user() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_user_icon" "")"
|
||||
local color="$(get_tmux_option "@catppuccin_user_color" "$thm_blue")"
|
||||
local color="$(get_tmux_option "@catppuccin_user_color" "$thm_cyan")"
|
||||
local text="$(get_tmux_option "@catppuccin_user_text" "#(whoami)")"
|
||||
|
||||
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue