summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-14 09:12:11 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-01-14 09:12:11 -0500
commitb56686aae5721da0f26bfac28b97635a363896e7 (patch)
tree351e9b9e00aa6bb2ac4f4088b6c31374356260e2 /bin
parentd7fd47516f9283e70bd4d0e5f19391e161247919 (diff)
fix notification duplication
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 980b015..c939347 100755
--- 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."