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

8
bin/st-power Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
POWER="$(pwrstat -status | grep "Load" | awk '{print $2}')W"
CHARGE=$(pwrstat -status | grep "Battery Capacity" | awk '{print $3$4}')
if [[ "$CHARGE" == "100%" ]]; then
echo $POWER
else
echo "$CHARGE $POWER"
fi