summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-battery
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-12-24 21:54:59 +0100
committerJoe <rbo@gmx.us>2024-12-24 21:54:59 +0100
commit4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f (patch)
tree784b8b42a7fb2172414a397b72bdac37c6f87de9 /.local/bin/status/sb-battery
parentup (diff)
downloaddotfiles-bsd-4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f.tar.gz
dotfiles-bsd-4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f.tar.bz2
dotfiles-bsd-4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f.tar.xz
dotfiles-bsd-4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f.tar.zst
dotfiles-bsd-4cf337b4f25b91eeb763e3ddf6b86252a0afbc9f.zip
status up
Diffstat (limited to '.local/bin/status/sb-battery')
-rwxr-xr-x.local/bin/status/sb-battery3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery
index ca4ff69..e4b29c6 100755
--- a/.local/bin/status/sb-battery
+++ b/.local/bin/status/sb-battery
@@ -1,9 +1,9 @@
#!/bin/sh
-echo -n "^c#fabd2f^"
case $(hostname -s) in
mother) exit ;;
po-rbo)
+ echo -n "^c#fabd2f^"
charge=$(cat /sys/class/power_supply/BAT0/capacity)
case "$(cat /sys/class/power_supply/BAT0/status)" in
"Charging"|"Not charging") printf "󱐋 " ;;
@@ -11,6 +11,7 @@ case $(hostname -s) in
esac
;;
mars)
+ echo -n "^c#fabd2f^"
charge=$(apm -l)
[ "$(apm -b)" -eq 3 ] && printf "󱐋 "
;;