not assume dunst

This commit is contained in:
Luke Smith 2019-04-11 23:16:21 -04:00
parent 594a2ffee9
commit f796821828
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -16,7 +16,7 @@ export DISPLAY=:0.0
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
notify() { osascript -e "display notification \"$2 in $1\" with title \"You've got Mail\" subtitle \"Account: $account\"" && sleep 2 ;} notify() { osascript -e "display notification \"$2 in $1\" with title \"You've got Mail\" subtitle \"Account: $account\"" && sleep 2 ;}
else else
notify() { paplay "$HOME/.config/mutt/bin/notify.ogg" & pgrep -x dunst && notify-send "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." ;} notify() { paplay "$HOME/.config/mutt/bin/notify.ogg" & notify-send "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." ;}
fi fi
echo " 🔃" > /tmp/imapsyncicon echo " 🔃" > /tmp/imapsyncicon