mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit cafc945138370f64f7d2342dda6a8748058b2090
parent 3bd61cbc9753f43765f5c866a53437a0d60e4f8f
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 24 Jan 2021 18:15:54 -0500

Merge pull request #640 from Maugrift/master

Fix duplicate mailsync notifications
Diffstat:
Mbin/mailsync | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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."