summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <Luke Smith>2022-06-14 07:47:13 -0600
committerLuke Smith <Luke Smith>2022-06-14 07:47:13 -0600
commit05b9680e20a31e9643b32a1ab0a9b773d7f34430 (patch)
tree3fe24ccff22cf20847a3212a3cc6996560f99e75 /bin
parent72fcb51e2434afe4e672019c5fce08d7fdfa8b86 (diff)
parentcefb66a8f03cab34b21aa47aaaad17e37dc8d377 (diff)
Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 97cd224..2f32c14 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -42,7 +42,7 @@ case "$(uname)" in
*systemd*|*openrc*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;;
esac
# remember if a display server is running since `ps` doesn't always contain a display
- pgrepoutput="$(pgrep -a X\(org\|wayland\))"
+ pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))"
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
export DISPLAY=$x