Reset old config

This commit is contained in:
2021-08-01 07:24:26 -07:00
commit 7cc3903efe
144 changed files with 16466 additions and 0 deletions

8
bin/scripts/battery Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/fish
# returns battery percentage and status
# 45%, discharging
# second parameter returns "fully" when fully charged. Since awesome only checks for "discharging," fixing that isn't necessary.
echo \
(upower --show-info /org/freedesktop/UPower/devices/battery_BAT1 | grep percentage | grep -Po "(\d\d?\d?)%"), \
(upower --show-info /org/freedesktop/UPower/devices/battery_BAT1 | grep state | grep -Po "(?<=state:)\s*(\w*)" | xargs) \