feat(module): rework the session module, format code, rework module loader

This commit is contained in:
Valentin Uveges 2023-08-18 08:17:37 +03:00
parent 465eb977f5
commit 2beae09938
9 changed files with 100 additions and 91 deletions

View file

@ -1,10 +1,10 @@
show_host() {
local index=$1
local icon="$(get_tmux_option "@catppuccin_host_icon" "󰒋")"
local color="$(get_tmux_option "@catppuccin_host_color" "$thm_magenta")"
local text="$(get_tmux_option "@catppuccin_host_text" "#H")"
local index=$1
local icon=$(get_tmux_option "@catppuccin_host_icon" "󰒋")
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" )
echo $module
echo $module
}