a lot of random poop

This commit is contained in:
Chris Cochrun 2021-10-11 09:18:45 -05:00
parent e4290fb279
commit f43677bd30
14 changed files with 50 additions and 14 deletions

10
scripts/batinfo Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
capacity=$(cat /sys/class/power_supply/BAT1/capacity)
status=$(cat /sys/class/power_supply/BAT1/status)
if [ $status = 'Charging' ]; then
icon=''
fi
echo $icon $capacity