get_tmux_option(), normalize_percent_len() in scripts/utils.sh
source scripts/utils.sh in dracula.sh, cpu_info.sh, gpu_usage.sh, ram_info.sh normalize_percent_len for ram_info custom labels for cpu-usage, gpu-usage, ram-usage
This commit is contained in:
parent
151cd3e45f
commit
87df275c6e
5 changed files with 42 additions and 48 deletions
|
@ -77,8 +77,9 @@ main()
|
|||
{
|
||||
# storing the refresh rate in the variable RATE, default is 5
|
||||
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
|
||||
ram_label=$(get_tmux_option "@dracula-ram-usage-label" "RAM")
|
||||
ram_percent=$(get_percent)
|
||||
echo "RAM $ram_percent"
|
||||
echo "$ram_label $ram_percent"
|
||||
sleep $RATE
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue