Add scripts for battery

This commit is contained in:
Ethan Lane 2022-03-07 18:23:13 +00:00
parent 4ffb9015fd
commit 42b470c5b1
Signed by: Vylpes
GPG key ID: EED233CC06D12504

View file

@ -0,0 +1,4 @@
if [ -d /sys/class/power_supply/BAT0 ]
then
echo $(acpi -V | grep 'Battery 0' | head -n 1 | cut -f2 -d, | sed 's/ //')
fi