diff options
Diffstat (limited to '.local/bin/awesome-widgets/widget-cpu_usage')
| -rwxr-xr-x | .local/bin/awesome-widgets/widget-cpu_usage | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/awesome-widgets/widget-cpu_usage b/.local/bin/awesome-widgets/widget-cpu_usage index 14997fd..53dab4d 100755 --- a/.local/bin/awesome-widgets/widget-cpu_usage +++ b/.local/bin/awesome-widgets/widget-cpu_usage @@ -6,7 +6,7 @@ cache=/tmp/cpubarscache 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#* } |
