aboutsummaryrefslogtreecommitdiffstats
path: root/mail-overview
diff options
context:
space:
mode:
Diffstat (limited to 'mail-overview')
-rwxr-xr-xmail-overview/mail-notify.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail-overview/mail-notify.sh b/mail-overview/mail-notify.sh
index f36bef2..fc75c56 100755
--- a/mail-overview/mail-notify.sh
+++ b/mail-overview/mail-notify.sh
@@ -165,11 +165,13 @@ write_state() {
notify_account() {
local label="$1" key="$2" count="$3" body="$4"
+ # -a carries "New Mail" because the user's dunst format renders %a as the
+ # bold heading line, with %s italic below it.
if ! command -v dunstify >/dev/null 2>&1; then
# No actions available, but a notification without a click is still
# worth having.
- notify-send -a mail-overview -i mail-unread -u normal -t 10000 \
- "New Mail - $label ($count)" "$body"
+ notify-send -a "New Mail" -u normal -t 10000 -i mail-unread-multiple \
+ "$label ($count)" "$body"
return 0
fi
@@ -177,10 +179,10 @@ notify_account() {
# clicked. Without this the loop would stall for the full timeout on
# every account, and a five-account batch would take most of a minute.
(
- if [[ "$(dunstify -a mail-overview -i mail-unread -u normal -t 10000 -b \
+ if [[ "$(dunstify -a "New Mail" -i mail-unread-multiple -u normal -t 10000 -b \
-h "string:x-dunst-stack-tag:mail-$key" \
-A "default,open" \
- "New Mail - $label ($count)" "$body")" == "default" ]]; then
+ "$label ($count)" "$body")" == "default" ]]; then
"$HOME/bin/qtmaildir" &
fi
) >/dev/null 2>&1 &