From bec891dac2cc69a75e4c5d273b4a1f3893f5b14b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 7 Jan 2022 17:06:45 +0100 Subject: Update statusbar scripts --- .local/bin/statusbar/sb-cpubars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/statusbar/sb-cpubars') diff --git a/.local/bin/statusbar/sb-cpubars b/.local/bin/statusbar/sb-cpubars index e60864a..1684ead 100755 --- a/.local/bin/statusbar/sb-cpubars +++ b/.local/bin/statusbar/sb-cpubars @@ -19,7 +19,7 @@ esac stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat) [ ! -f $cache ] && echo "$stats" > "$cache" old=$(cat "$cache") -printf "" +printf "CPU: " echo "$stats" | while read -r row; do id=${row%% *} rest=${row#* } -- cgit v1.2.3-70-g09d2