diff options
author | Luke Smith <luke@lukesmith.xyz> | 2023-02-16 14:12:40 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2023-02-16 14:12:40 -0500 |
commit | 57e6d292a11600194abd5daea2fca09087624276 (patch) | |
tree | e1ad01a75498cdc6ae89a5bfd7ed154e3e75e198 /bin/mailsync | |
parent | 48ac83c07f7f62475400dcec179c0695bd7aba3e (diff) | |
parent | 17bb517c391282aa7a384cd713e47ce004680b59 (diff) |
Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 1f2aa32..ac1920b 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -43,7 +43,7 @@ case "$(uname)" in displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" [ -z "$displays" ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done) - notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do + notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do export DISPLAY="$x" notify-send --app-name="mutt-wizard" "$1" "$2" done ;} |