From 1f90f88f64a71a1d37c0e8aace331048182aa667 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 24 Nov 2023 12:42:18 +0100 Subject: up --- .local/bin/status/sb-battery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local') diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery index e2a23ef..bbff010 100755 --- a/.local/bin/status/sb-battery +++ b/.local/bin/status/sb-battery @@ -2,7 +2,7 @@ case $(hostname -s) in mother) return ;; - po-rbo) + po-rbo) charge=$(cat /sys/class/power_supply/BAT0/capacity) [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && printf "󱐋 " [ "$(cat /sys/class/power_supply/BAT0/status)" = "Not charging" ] && printf "󱐋 " @@ -18,7 +18,7 @@ case $(echo "$charge" / 20 | bc) in "1") printf " " ;; "2") printf " " ;; "3") printf " " ;; - "4") + "4") [ "$charge" -gt 94 ] && return printf " " ;; -- cgit v1.2.3