chore: desktop variant

This commit is contained in:
Fabio Lenherr / DashieTM 2023-01-01 23:51:07 +01:00
parent 20deee09db
commit a2011eab8c
51 changed files with 0 additions and 541 deletions

17
eww_desktop/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