Merge branch 'master' of https://github.com/aaron-gh/I38 into aaron-gh-master

This commit is contained in:
2022-11-30 12:31:35 -07:00
2 changed files with 14 additions and 1 deletions

10
scripts/battery_status.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/env bash
#Get battery status
cd /sys/class/power_supply
for f in `ls`; do
if [ -e $f"/capacity" ]; then
export stat=`cat $f"/status"`
export cap=`cat $f"/capacity"`
echo battery $f": "$stat", "$cap"%"
fi
done|spd-say -e