diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-22 15:24:55 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-22 15:24:55 +0530 |
| commit | 1f80ae89d060a48f9959c67840e641372a04e127 (patch) | |
| tree | 9ece31d7855996968414c3ec85f28b237f5ddc22 /hypr/battery-notif.sh | |
| parent | ea67a0fe498578d03b27bcf7365acfc69cc840b4 (diff) | |
greyline, live wallpaper
Diffstat (limited to 'hypr/battery-notif.sh')
| -rwxr-xr-x | hypr/battery-notif.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hypr/battery-notif.sh b/hypr/battery-notif.sh index e64442a..6c721a5 100755 --- a/hypr/battery-notif.sh +++ b/hypr/battery-notif.sh @@ -5,12 +5,12 @@ while true; do if [[ "$status" = "Discharging" ]]; then battery=$(cat /sys/class/power_supply/BAT1/capacity) if [[ battery -lt 16 ]]; then - notify-send -u critical "Very Low Battery" -i ~/.config/hypr/battery/battery_critical.png -t 5000 + notify-send -u critical "CHARGE" "Very Low Battery" -t 2000 elif [[ battery -lt 31 ]]; then - notify-send -u normal "Low Battery" -i ~/.config/hypr/battery/battery_low.png -t 5000 + notify-send -u normal "CHARGE" "Low Battery" -t 2000 fi fi pid=$! - sleep 5 + sleep 2 kill $pid done |
