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

This commit is contained in:
jticket committed 2022-11-30 12:31:35 -07:00
commit ef41ad1238
2 files changed
+14 -1

No files matched your search

+10
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