more changes, all should work pretty nicely now

This commit is contained in:
2025-05-21 15:45:30 +02:00
parent 0e34591f0a
commit ab93aae1b6
56 changed files with 6674 additions and 229 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
notif_id=$1
bat_alert_lvl=15
bat_lvl=$(grep "" /sys/class/power_supply/BAT0/capacity )
bat_status=$(grep Discharging /sys/class/power_supply/BAT0/status )
if (( $bat_lvl < $bat_alert_lvl )) && [ $bat_status == "Discharging" ]; then
notify-send -a low_battery -u critical "Low Battery" "Connect Power Adapter" -i battery-low -r $notif_id -t 60000
fi