summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-cpubars
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-06-20 15:53:22 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-06-20 15:53:22 +0200
commit540d1a708efe4eadd1d09290bf8049e7cb5eceb0 (patch)
treed743b8b6ac6dbaaed9fdb8e79d8cd74e8aa8303d /.local/bin/statusbar/sb-cpubars
parent74e1dacf46ba61f6039f4e770806c11f9b3a81f5 (diff)
Modifications to Luke's statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-cpubars')
-rwxr-xr-x.local/bin/statusbar/sb-cpubars4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/statusbar/sb-cpubars b/.local/bin/statusbar/sb-cpubars
index 297424e..e60864a 100755
--- a/.local/bin/statusbar/sb-cpubars
+++ b/.local/bin/statusbar/sb-cpubars
@@ -10,7 +10,7 @@ cache=/tmp/cpubarscache
case $BLOCK_BUTTON in
2) setsid -f "$TERMINAL" -e htop ;;
- 3) notify-send "🪨 CPU load module" "Each bar represents
+ 3) notify-send "ï‹› CPU load module" "Each bar represents
one CPU core";;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
@@ -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#* }