diff options
-rwxr-xr-x | .local/bin/status/sb-battery | 2 | ||||
-rwxr-xr-x | .local/bin/status/sb-cpu | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery index e239aea..ca4ff69 100755 --- a/.local/bin/status/sb-battery +++ b/.local/bin/status/sb-battery @@ -2,7 +2,7 @@ echo -n "^c#fabd2f^" case $(hostname -s) in - mother) return ;; + mother) exit ;; po-rbo) charge=$(cat /sys/class/power_supply/BAT0/capacity) case "$(cat /sys/class/power_supply/BAT0/status)" in diff --git a/.local/bin/status/sb-cpu b/.local/bin/status/sb-cpu index f6eaa92..45def29 100755 --- a/.local/bin/status/sb-cpu +++ b/.local/bin/status/sb-cpu @@ -15,7 +15,7 @@ case $(hostname -s) in top -b -d 0.1 -n 1 | grep "Cpu(s)" | \ sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \ awk '{print int(100 - $1)"%"}' - return + exit ;; mars) stats=$(top -d 2 -s 0.2 | grep -E 'load averages:|^CPU') |