feat(load): add load module based on jamesoff/tmux-loadavg
This commit is contained in:
parent
a0119d2528
commit
307edce7da
2 changed files with 33 additions and 0 deletions
11
status/load.sh
Normal file
11
status/load.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
show_load() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_load_icon" "")"
|
||||
local color="$(get_tmux_option "@catppuccin_load_color" "$thm_blue")"
|
||||
local text="$(get_tmux_option "@catppuccin_load_text" "#{load_full}")"
|
||||
|
||||
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
||||
echo "$module"
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue