mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
typo
This commit is contained in:
parent
f34a55dd9a
commit
6db35bdc69
@ -31,9 +31,9 @@ for battery in /sys/class/power_supply/BAT?*; do
|
|||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||||
test $stat = '🔋' && \
|
test $status = '🔋' && \
|
||||||
test $capa -le 50 && stat='🪫' && \
|
test $capacity -le 50 && stat='🪫' && \
|
||||||
test $capa -le 25 && warn='❗'
|
test $capacity -le 25 && warn='❗'
|
||||||
# Prints the info
|
# Prints the info
|
||||||
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
|
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
|
||||||
done && printf "\\n"
|
done && printf "\\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user