summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-battery
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-01-07 11:19:22 +0100
committerJoe <rbo@gmx.us>2025-01-07 11:19:22 +0100
commitf3fd4a28fc4c17c02f06e20594bf10b935d73d52 (patch)
treea38add5df1018e4989d7916df9b79649999b7ecf /.local/bin/status/sb-battery
parentmake (diff)
downloaddotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.gz
dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.bz2
dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.xz
dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.zst
dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.zip
up
Diffstat (limited to '.local/bin/status/sb-battery')
-rwxr-xr-x.local/bin/status/sb-battery4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery
index e4b29c6..2fe3ce5 100755
--- a/.local/bin/status/sb-battery
+++ b/.local/bin/status/sb-battery
@@ -3,7 +3,7 @@
case $(hostname -s) in
mother) exit ;;
po-rbo)
- echo -n "^c#fabd2f^"
+ printf "^c#fabd2f^"
charge=$(cat /sys/class/power_supply/BAT0/capacity)
case "$(cat /sys/class/power_supply/BAT0/status)" in
"Charging"|"Not charging") printf "󱐋 " ;;
@@ -23,7 +23,7 @@ case $(echo "$charge" / 20 | bc) in
"2") printf " " ;;
"3") printf " " ;;
"4")
- [ "$charge" -gt 94 ] && return
+ [ "$charge" -gt 98 ] && return
printf " "
;;
"5")