updating a lot of hyprland config pieces

This commit is contained in:
Chris Cochrun 2022-12-21 09:13:28 -06:00
parent 28645f7175
commit d9cf8e32a7
9 changed files with 245 additions and 172 deletions

20
scripts/batmon Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
while [ 1 ];
do
capacity=$(cat /sys/class/power_supply/BAT1/capacity)
status=$(cat /sys/class/power_supply/BAT1/status)
if [ $status = 'Charging' ]; then
eww close battery
sleep 10
else
if [ $capacity -le 30 ];
then
eww open battery
else
eww close battery
fi
sleep 10
fi
done