Browse Source

Merge pull request #640 from Maugrift/master

Fix duplicate mailsync notifications
tags/3.2.1
Luke Smith 3 years ago
committed by GitHub
parent
commit
cafc945138
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync View File

@@ -44,7 +44,7 @@ case "$(uname)" in
messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;}
;; ;;
*) *)
displays="$(pgrep -a Xorg | grep -wo "[0-9]*:[0-9]\+")"
displays="$(pgrep -a Xorg | grep -wo "[0-9]*:[0-9]\+" | uniq)"
notify() { for x in $displays; do notify() { for x in $displays; do
export DISPLAY=$x export DISPLAY=$x
notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account."


Loading…
Cancel
Save