feat: eww hypr alacritty and more

This commit is contained in:
Fabio Lenherr 2022-08-30 11:40:09 +00:00
parent 974932c5a9
commit 1f3c2b9947
No known key found for this signature in database
GPG key ID: 868FFD689D878939
38 changed files with 3368 additions and 0 deletions

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