aboutsummaryrefslogtreecommitdiff
path: root/hypr/battery-notif.sh
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
commit91a5f9790cfd4a98ee940633694fb512ecf24942 (patch)
treeb20bdd22e304234b6893e20d0ca5fbfd042f2184 /hypr/battery-notif.sh
parentced774e19c36fb3b0b33a3846e7c9cf874b0c206 (diff)
i3 > hyprland & x11 > wayland
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