diff options
author | Joe <bousset.rudy@gmail.com> | 2022-09-05 15:58:52 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-09-05 15:58:52 +0200 |
commit | a58017860c154b49491deaa06604279bad4f03ab (patch) | |
tree | f688b4eba7b367c71577b121a0772fbac6968f41 /.local/bin/status | |
parent | up (diff) | |
download | dotfiles-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-battery | 18 |
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 |