summaryrefslogtreecommitdiffstats
path: root/.local/bin/status
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-09-05 15:58:52 +0200
committerJoe <bousset.rudy@gmail.com>2022-09-05 15:58:52 +0200
commita58017860c154b49491deaa06604279bad4f03ab (patch)
treef688b4eba7b367c71577b121a0772fbac6968f41 /.local/bin/status
parentup (diff)
downloaddotfiles-bsd-a58017860c154b49491deaa06604279bad4f03ab.tar.gz
dotfiles-bsd-a58017860c154b49491deaa06604279bad4f03ab.tar.bz2
dotfiles-bsd-a58017860c154b49491deaa06604279bad4f03ab.tar.xz
dotfiles-bsd-a58017860c154b49491deaa06604279bad4f03ab.tar.zst
dotfiles-bsd-a58017860c154b49491deaa06604279bad4f03ab.zip
up
Diffstat (limited to '.local/bin/status')
-rwxr-xr-x.local/bin/status/sb-battery18
1 files changed, 7 insertions, 11 deletions
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