Revert "Update"

This reverts commit 777960ac7b.
This commit is contained in:
Derek Taylor
2025-12-03 11:20:33 -06:00
parent 777960ac7b
commit a91301075a
758 changed files with 37421 additions and 6 deletions

17
.config/eww/bar/scripts/battery Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
battery() {
BAT=`ls /sys/class/power_supply | grep BAT | head -n 1`
cat /sys/class/power_supply/${BAT}/capacity
}
battery_stat() {
BAT=`ls /sys/class/power_supply | grep BAT | head -n 1`
cat /sys/class/power_supply/${BAT}/status
}
if [[ "$1" == "--bat" ]]; then
battery
elif [[ "$1" == "--bat-st" ]]; then
battery_stat
fi