diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-01-24 18:15:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 18:15:54 -0500 |
commit | cafc945138370f64f7d2342dda6a8748058b2090 (patch) | |
tree | d584f8ffc812df3bfc01c3ef44ec6ba5accfcf93 | |
parent | 3bd61cbc9753f43765f5c866a53437a0d60e4f8f (diff) | |
parent | c3aa6733f2cb723523598f4ad6b6b49d82849c1e (diff) |
Merge pull request #640 from Maugrift/master
Fix duplicate mailsync notifications
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 42cd4e0..dfcd7da 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -44,7 +44,7 @@ case "$(uname)" in 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 export DISPLAY=$x notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." |