Browse Source

fix notifications on Xwayland

tags/3.2.1
Clément DOUIN 3 years ago
parent
commit
0ff14fee55
No known key found for this signature in database GPG Key ID: 69C9B9CFFDEE2DEF
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync View File

@@ -39,7 +39,7 @@ case "$(uname)" in
messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} 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 notify() { for x in $displays; do
export DISPLAY=$x export DISPLAY=$x
notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account."


Loading…
Cancel
Save