mcom blocks mbsync, ncspot without abduco, hide past events in agenda

This commit is contained in:
Felix Van der Jeugt 2023-01-03 11:09:59 +01:00
parent 638eafecf7
commit e260c8d5cf
2 changed files with 4 additions and 2 deletions

View File

@ -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

3
zshrc
View File

@ -78,10 +78,9 @@ alias agent='eval "$(ssh-agent)" && ssh-add'
alias unlock='gpg-connect-agent <<<bye'
alias weechat="ssh -t weechat@Hetzner abduco -A weechat"
alias ncspot="abduco -A ncspot ncspot"
function agenda() {
khal calendar --format '{calendar-color}{cancelled}{start-end-time-style}{repeat-symbol} {title}{reset}' ${@:-today 2d}
khal calendar --format '{calendar-color}{cancelled}{start-end-time-style}{repeat-symbol} {title}{reset}' ${@:-now 2d}
}
# Ledger