diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-07 17:06:45 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-07 17:06:45 +0100 |
commit | bec891dac2cc69a75e4c5d273b4a1f3893f5b14b (patch) | |
tree | be43fe7d00cd56dc72e0d0da00a6c2bb6e64be60 /.local/bin/statusbar/sb-cpubars | |
parent | a422b3858f2862b4865e2859ad85c977dc83f4b4 (diff) |
Update statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-cpubars')
-rwxr-xr-x | .local/bin/statusbar/sb-cpubars | 2 |
1 files changed, 1 insertions, 1 deletions
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#* } |