aboutsummaryrefslogtreecommitdiff
path: root/hypr/battery-notif.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/battery-notif.sh')
-rwxr-xr-xhypr/battery-notif.sh6
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