battery: set critical to 20% in waybar and check script

feat/authelia
Benjamin Yule Bädorf 2024-03-27 11:37:07 +01:00
parent 03b7e423cc
commit 72aa907ebd
Signed by: b12f
GPG Key ID: 729956E1124F8F26
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ in {
battery = {
tooltip = false;
states = {
critical = 25;
critical = 20;
};
full-at = 90;
format = "<span font='12'>{icon}</span> {capacity}%";

View File

@ -6,7 +6,7 @@ if [ $status != "Discharging" ]; then
fi
capacity=$(cat /sys/class/power_supply/BAT0/capacity)
if [ $capacity -lt 15 ]; then
if [ $capacity -lt 20 ]; then
${libnotify}/bin/notify-send -u critical "Battery ''${capacity}%"
fi
''