Merge pull request #168 from tarantila/patch-1
Display CPU label on CPU load configuration
This commit is contained in:
commit
8dbb6be109
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ main() {
|
||||||
# storing the refresh rate in the variable RATE, default is 5
|
# storing the refresh rate in the variable RATE, default is 5
|
||||||
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
|
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
|
||||||
cpu_load=$(get_tmux_option "@dracula-cpu-display-load" false)
|
cpu_load=$(get_tmux_option "@dracula-cpu-display-load" false)
|
||||||
|
cpu_label=$(get_tmux_option "@dracula-cpu-usage-label" "CPU")
|
||||||
if [ "$cpu_load" = true ]; then
|
if [ "$cpu_load" = true ]; then
|
||||||
echo "$(get_load)"
|
echo "$cpu_label $(get_load)"
|
||||||
else
|
else
|
||||||
cpu_label=$(get_tmux_option "@dracula-cpu-usage-label" "CPU")
|
|
||||||
cpu_percent=$(get_percent)
|
cpu_percent=$(get_percent)
|
||||||
echo "$cpu_label $cpu_percent"
|
echo "$cpu_label $cpu_percent"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue