So many updates that I don't remember what I did since the last commit
This commit is contained in:
parent
ec120f92ce
commit
7c718c80dc
21 changed files with 991 additions and 18 deletions
11
.local/bin/batterynotify
Executable file
11
.local/bin/batterynotify
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
battery=$(upower -i "$(upower -e | grep BAT)" | grep -E "percentage" | awk '{print $2}' | tr -d '%')
|
||||
if [ "$battery" -le "20" ]; then
|
||||
hyprctl notify 0 5000 0 " Low battery: ${battery}%"
|
||||
sleep 240
|
||||
else
|
||||
sleep 120
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue