mild tweaking, just added "discharing" LOL

This commit is contained in:
devaine 2025-04-27 23:15:07 -05:00
commit f5532e89ca
Signed by untrusted user who does not match committer: devaine
GPG key ID: 954B1DCAC6FF84EE
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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