diff --git a/modules/graphical/waybar.nix b/modules/graphical/waybar.nix index b36cc1f..f99cd1e 100644 --- a/modules/graphical/waybar.nix +++ b/modules/graphical/waybar.nix @@ -56,7 +56,7 @@ in { battery = { tooltip = false; states = { - critical = 25; + critical = 20; }; full-at = 90; format = "{icon} {capacity}%"; diff --git a/pkgs/check-battery.nix b/pkgs/check-battery.nix index 5bccdf6..7005724 100644 --- a/pkgs/check-battery.nix +++ b/pkgs/check-battery.nix @@ -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 ''