mutt-wizard

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

commit b56686aae5721da0f26bfac28b97635a363896e7
parent d7fd47516f9283e70bd4d0e5f19391e161247919
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 14 Jan 2021 09:12:11 -0500

fix notification duplication

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

diff --git a/bin/mailsync b/bin/mailsync @@ -42,7 +42,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]\+" | sort -u)" notify() { for x in $displays; do export DISPLAY=$x notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account."