diff options
author | Joe <rrbo@proton.me> | 2023-11-24 12:18:45 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-11-24 12:18:45 +0100 |
commit | a5ad922823b204acf2e5776548e00807d8e29c95 (patch) | |
tree | 533dbe5530f600a1ce618013a6bc1eedcceee0b7 /.local/bin/status | |
parent | up (diff) | |
download | dotfiles-bsd-a5ad922823b204acf2e5776548e00807d8e29c95.tar.gz dotfiles-bsd-a5ad922823b204acf2e5776548e00807d8e29c95.tar.bz2 dotfiles-bsd-a5ad922823b204acf2e5776548e00807d8e29c95.tar.xz dotfiles-bsd-a5ad922823b204acf2e5776548e00807d8e29c95.tar.zst dotfiles-bsd-a5ad922823b204acf2e5776548e00807d8e29c95.zip |
up
Diffstat (limited to '.local/bin/status')
-rwxr-xr-x | .local/bin/status/sb-battery | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery index 542fda7..8787bff 100755 --- a/.local/bin/status/sb-battery +++ b/.local/bin/status/sb-battery @@ -2,8 +2,8 @@ case $(hostname -s) in mother) return ;; - po-rbo) [ $(cat /sys/class/power_supply/BAT0/status) = "Charging" ] && echo -n "ﮣ " ;; - mars) [ $(apm -b) -eq 3 ] && echo -n "ﮣ " ;; + po-rbo) [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && echo -n "ﮣ " ;; + mars) [ "$(apm -b)" -eq 3 ] && echo -n "ﮣ " ;; esac case $(hostname -s) in @@ -11,7 +11,7 @@ case $(hostname -s) in mars) charge=$(apm -l) ;; esac -case $(echo $charge / 20 | bc) in +case $(echo "$charge" / 20 | bc) in "0") printf " ";; "1") printf " ";; "2") printf " ";; |