This commit is contained in:
2025-07-02 00:07:49 -07:00
commit c208c6b35d
114 changed files with 71862 additions and 0 deletions

7
bin/st-bat Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
VOLTAGE=$(cat /sys/class/power_supply/BAT1/voltage_now)
CURRENT=$(cat /sys/class/power_supply/BAT1/current_now)
POWER="$(echo "scale=2; $VOLTAGE*$CURRENT/1000000000000" | bc)W"
CHARGE="$(cat /sys/class/power_supply/BAT*/capacity)%"
echo "$CHARGE $POWER"
#echo $POWER >> .power_log