updating a lot of hyprland config pieces
This commit is contained in:
parent
28645f7175
commit
d9cf8e32a7
9 changed files with 245 additions and 172 deletions
20
scripts/batmon
Executable file
20
scripts/batmon
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue