mutt-wizard

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

commit 5e6c8b48f14b2bb8e53ef8d34fb98ebadc042281
parent dccd4d4cbf741c2c0d06e761bc1fb63561d5f1e6
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue,  2 Feb 2021 17:00:23 -0500

Merge pull request #646 from soywod/master

Fix notifications on Wayland-based environments
Diffstat:
Mbin/mailsync | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/mailsync b/bin/mailsync @@ -39,7 +39,7 @@ case "$(uname)" in messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} ;; *) - displays="$(pgrep -a Xorg | grep -wo "[0-9]*:[0-9]\+" | sort -u)" + displays="$(pgrep -a X\(org\|wayland\) | 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."