feat: add battery monitoring convenience script

This commit is contained in:
Zhongheng Liu 2026-06-14 17:12:49 +02:00
commit b86a4183f9

1
scripts/adpon.sh Executable file
View file

@ -0,0 +1 @@
[ "$(cat /sys/class/power_supply/ADP*/online 2>/dev/null)" = "1" ] && echo "ADP Online" || echo "ADP Offline; using battery"