From 9149ffe4e279aeed408d5fcfca56b1fcacd73a4e Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Sun, 28 Jan 2024 14:30:16 +0100 Subject: [PATCH] cpu usage script changes --- .local/bin/statusbar/sb-cpubars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/sb-cpubars b/.local/bin/statusbar/sb-cpubars index 4188cae..b23834c 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 "🖥️ " echo "$stats" | while read -r row; do id=${row%% *} rest=${row#* }