feat(load): add load module based on jamesoff/tmux-loadavg

This commit is contained in:
Henri Sota 2024-02-18 10:34:21 +01:00
parent a0119d2528
commit 307edce7da
2 changed files with 33 additions and 0 deletions

11
status/load.sh Normal file
View 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"
}