From 91a5f9790cfd4a98ee940633694fb512ecf24942 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Thu, 6 Aug 2026 00:29:36 +0530 Subject: i3 > hyprland & x11 > wayland --- hypr/battery-notif.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 hypr/battery-notif.sh (limited to 'hypr/battery-notif.sh') 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 -- cgit v1.2.3