feat: add battery-watch daemon and notification urgency support
- new battery-watch daemon: warnt bei 25% und 15% per dunst-Notification - notify-waybar.sh schreibt jetzt auch Urgency-Level in /tmp - notif-status.sh: neues waybar-Skript mit urgency-CSS-Klasse - hyprland.conf: battery-watch als exec-once, clipboard-bind entfernt - config.jsonc: Brave-Icon hinzugefügt, Battery-Schwellen auf 25/15 korrigiert - generate.py: Font Awesome Brands ergänzt, transition:none für critical-blink - reload.sh: waybar-Start korrigiert (disown als eigene Zeile) - install.sh: startet dunst und battery-watch nach Theme-Load neu
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
SUMMARY="$DUNST_SUMMARY"
|
||||
APP="$DUNST_APP_NAME"
|
||||
BODY="$DUNST_BODY"
|
||||
URGENCY="${DUNST_URGENCY,,}" # lowercase: low, normal, critical
|
||||
|
||||
[ -z "$SUMMARY" ] && exit 0
|
||||
|
||||
echo "${APP}: ${SUMMARY}${BODY:+ — $BODY}" > /tmp/waybar-notif
|
||||
echo "$URGENCY" > /tmp/waybar-notif-urgency
|
||||
|
||||
# Datei nach 10 Sekunden automatisch leeren
|
||||
(sleep 10 && rm -f /tmp/waybar-notif) &
|
||||
(sleep 10 && rm -f /tmp/waybar-notif /tmp/waybar-notif-urgency) &
|
||||
|
||||
Reference in New Issue
Block a user