summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-11-24 12:42:18 +0100
committerJoe <rrbo@proton.me>2023-11-24 12:42:18 +0100
commit1f90f88f64a71a1d37c0e8aace331048182aa667 (patch)
treeb05d8dfcf6cf57eb755a048c6293f987bf81f5f0 /.local/bin
parentup (diff)
downloaddotfiles-bsd-1f90f88f64a71a1d37c0e8aace331048182aa667.tar.gz
dotfiles-bsd-1f90f88f64a71a1d37c0e8aace331048182aa667.tar.bz2
dotfiles-bsd-1f90f88f64a71a1d37c0e8aace331048182aa667.tar.xz
dotfiles-bsd-1f90f88f64a71a1d37c0e8aace331048182aa667.tar.zst
dotfiles-bsd-1f90f88f64a71a1d37c0e8aace331048182aa667.zip
up
Diffstat (limited to '')
-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 e2a23ef..bbff010 100755
--- a/.local/bin/status/sb-battery
+++ b/.local/bin/status/sb-battery
@@ -2,7 +2,7 @@
case $(hostname -s) in
mother) return ;;
- po-rbo)
+ po-rbo)
charge=$(cat /sys/class/power_supply/BAT0/capacity)
[ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && printf "󱐋 "
[ "$(cat /sys/class/power_supply/BAT0/status)" = "Not charging" ] && printf "󱐋 "
@@ -18,7 +18,7 @@ case $(echo "$charge" / 20 | bc) in
"1") printf " " ;;
"2") printf " " ;;
"3") printf " " ;;
- "4")
+ "4")
[ "$charge" -gt 94 ] && return
printf " "
;;