diff options
Diffstat (limited to 'hypr/battery-notif.sh')
| -rwxr-xr-x | hypr/battery-notif.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hypr/battery-notif.sh b/hypr/battery-notif.sh index 4298192..4a0165e 100755 --- a/hypr/battery-notif.sh +++ b/hypr/battery-notif.sh @@ -4,10 +4,10 @@ while true; do status=$(cat /sys/class/power_supply/BAT1/status) if [[ "$status" = "Discharging" ]]; then battery=$(cat /sys/class/power_supply/BAT1/capacity) - if [[ battery -lt 15 ]]; then - notify-send -u critical Very Low Battery -i ~/.config/waybar/battery_low.png - elif [[ battery -lt 30 ]]; then - notify-send -u normal Low Battery -i ~/.config/waybar/battery_low.png + if [[ battery -lt 16 ]]; then + notify-send -u critical "Very Low Battery" -i ~/.config/waybar/battery_critical.png + elif [[ battery -lt 31 ]]; then + notify-send -u normal "Low Battery" -i ~/.config/waybar/battery_low.png fi fi pid=$! |
