aboutsummaryrefslogtreecommitdiff
path: root/hypr/battery-notif.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/battery-notif.sh')
-rwxr-xr-xhypr/battery-notif.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/hypr/battery-notif.sh b/hypr/battery-notif.sh
deleted file mode 100755
index 6c721a5..0000000
--- a/hypr/battery-notif.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-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 16 ]]; then
- notify-send -u critical "CHARGE" "Very Low Battery" -t 2000
- elif [[ battery -lt 31 ]]; then
- notify-send -u normal "CHARGE" "Low Battery" -t 2000
- fi
- fi
- pid=$!
- sleep 2
- kill $pid
-done