This commit is contained in:
sankalp committed 2024-06-11 18:07:23 +05:45
1 parent 51c0161e64
commit 29b7e6b530
7 files changed
+43 -47

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ battery_notify() {
FULL_CHARGE_NOTIFIED=1 # Set the state to indicate that the full charge notification has been sent
fi
if [ "$PERCENT" -le 20 ] && [ "$LOW_BATTERY_NOTIFIED" -eq 0 ]; then # Check if the battery percentage is less than or equal to 20% and low battery notification has not been sent
if [ "$PERCENT" -le 40 ] && [ "$LOW_BATTERY_NOTIFIED" -eq 0 ]; then # Check if the battery percentage is less than or equal to 20% and low battery notification has not been sent
notify-send -u critical "🪫 Low Battery" "Plug in the charger" # Send low battery notification
LOW_BATTERY_NOTIFIED=1 # Set the state to indicate that the low battery notification has been sent
fi