From a58017860c154b49491deaa06604279bad4f03ab Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 5 Sep 2022 15:58:52 +0200 Subject: up --- .local/bin/status/sb-battery | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to '.local') diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery index bad456c..1b3bb24 100755 --- a/.local/bin/status/sb-battery +++ b/.local/bin/status/sb-battery @@ -2,16 +2,12 @@ status=$(apm -b) -[ "$status" -eq 3 ] && exit +[ "$status" -eq 3 ] && echo "" -case $(echo $(apm -l) / 12.5 | bc) in - "0") printf "[ ]";; - "1") printf "[= ]";; - "2") printf "[== ]";; - "3") printf "[=== ]";; - "4") printf "[==== ]";; - "5") printf "[===== ]";; - "6") printf "[====== ]";; - "7") printf "[======= ]";; - "8") printf "[========]";; +case $(echo $(apm -l) / 20 | bc) in + "0") printf "";; + "1") printf " ";; + "2") printf " ";; + "3") printf " ";; + "4") printf " ";; esac -- cgit v1.2.3