From 8a22709034ae6262a964bf49fd4ed51dba56d9f9 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 29 Jun 2017 09:37:29 +0200 Subject: [PATCH] no notifications for gpg-agent --- services/notmuch/notmuch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/notmuch/notmuch b/services/notmuch/notmuch index a45f1d2..94b1c1d 100755 --- a/services/notmuch/notmuch +++ b/services/notmuch/notmuch @@ -4,11 +4,7 @@ ip route ls | grep -v '' && exit 1 # check if the gpg-agent is running -if ! pgrep gpg-agent >/dev/null; then - notify-send "no gpg-agent" - sleep 10 - exit 2 -fi +pgrep gpg-agent >/dev/null || exit 2 while notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 | grep -v "Ignoring" | xargs -0 --no-run-if-empty notify-send && sleep 3m; do true