feat(custom): add logic to load modules form custom, status and window so that the user cand define it's own modules or override any existing one
This commit is contained in:
parent
79229bd979
commit
ab869e5704
4 changed files with 76 additions and 11 deletions
10
custom/example.sh
Normal file
10
custom/example.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
show_example() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_test_icon" "")"
|
||||
local color="$(get_tmux_option "@catppuccin_test_color" "$thm_blue")"
|
||||
local text="$(get_tmux_option "@catppuccin_test_text" "It works!")"
|
||||
|
||||
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
||||
echo $module
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue