summaryrefslogtreecommitdiff
path: root/.scripts/battery
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/battery')
-rwxr-xr-x.scripts/battery2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/battery b/.scripts/battery
index 1f308a5..626c517 100755
--- a/.scripts/battery
+++ b/.scripts/battery
@@ -31,7 +31,7 @@ for battery in /sys/class/power_supply/BAT?*; do
esac
capacity="$(cat "$battery/capacity" 2>&1)"
# Will make a warn variable if discharging and low
- [ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && warn="❗"
+ [ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && warn="❗" && dunstify "Critical Battery" "Charge Immediately" -u critical -i battery-quarter
# Prints the info
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
done && printf "\\n"