From f5532e89ca8da754280ebd77fac40a7c5a5323bc Mon Sep 17 00:00:00 2001 From: devaine Date: Sun, 27 Apr 2025 23:15:07 -0500 Subject: [PATCH] mild tweaking, just added "discharing" LOL --- notifs/battery | 4 ++-- notifs/battery-status | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notifs/battery b/notifs/battery index 6038978..cebbcca 100755 --- a/notifs/battery +++ b/notifs/battery @@ -71,5 +71,5 @@ elif [ "$BAT_PERCENT" -le $WARNING_PERCENT ] && [ "$DISCHARGING_COUNT" -eq 1 ] & fi # Debug commands -echo "$BAT_PERCENT is the battery percent" -echo "$DISCHARGING_COUNT -- 1 = discharging, 0 = charging" +#echo "$BAT_PERCENT is the battery percent" +#echo "$DISCHARGING_COUNT -- 1 = discharging, 0 = charging" diff --git a/notifs/battery-status b/notifs/battery-status index 2acd9a1..c894814 100755 --- a/notifs/battery-status +++ b/notifs/battery-status @@ -7,5 +7,5 @@ NOTCHARGING_COUNT=$(acpi -b | grep "Battery $BATTERY" | grep -c "Not Charging") if [[ $DISCHARGING_COUNT -eq 0 ]] || [[ $NOTCHARGING_COUNT -eq 1 ]]; then dunstify "Battery Status" "Battery is currently charging at ${BAT_PERCENT}%" -i "battery-level-50-charging-symbolic" -r 9991 -t 5000 else - dunstify "Battery Status" "Battery is currently at ${BAT_PERCENT}%" -i "battery-level-50-symbolic" -r 9991 -t 5000 + dunstify "Battery Status" "Battery is currently discharging at ${BAT_PERCENT}%" -i "battery-level-50-symbolic" -r 9991 -t 5000 fi