From e260c8d5cfef5c16c3f03717cbbc194573dc184a Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 3 Jan 2023 11:09:59 +0100 Subject: [PATCH] mcom blocks mbsync, ncspot without abduco, hide past events in agenda --- services/mailsync/run | 3 +++ zshrc | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/mailsync/run b/services/mailsync/run index 6d0360e..6fdf9d9 100755 --- a/services/mailsync/run +++ b/services/mailsync/run @@ -16,6 +16,9 @@ ip route ls | grep -q '.' # check if the gpg-agent is running pgrep gpg-agent > /dev/null +# Don't sync mails while composing +if pgrep -f mcom > /dev/null; then exit 1; fi + # Sync email mbsync -a -q || true diff --git a/zshrc b/zshrc index a74e379..923910f 100644 --- a/zshrc +++ b/zshrc @@ -78,10 +78,9 @@ alias agent='eval "$(ssh-agent)" && ssh-add' alias unlock='gpg-connect-agent <<