summaryrefslogtreecommitdiff
path: root/.scripts/battery
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-13 18:43:04 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-13 18:43:04 +0530
commitaee94489315c63bf9341ca07668ef9449f87a90f (patch)
tree562a54c6cb05e83b959700f087eccc650856ce56 /.scripts/battery
parentd2bcdf100726baf18a34bd3c0c68c074827c6d04 (diff)
dunst notif icon update
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"