From 9bf21be97e74d73eeb9156029bbde0974351446a Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 11 Aug 2022 15:54:58 +0200 Subject: update --- .local/bin/fetch_mail.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/fetch_mail.sh (limited to '.local/bin') diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh new file mode 100755 index 0000000..d030641 --- /dev/null +++ b/.local/bin/fetch_mail.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +export DISPLAY=unix:0.0 +export GNUPGHOME=/home/jozan/.local/share/gnupg +export PASSWORD_STORE_DIR=/home/jozan/.local/share/pass + +killall mbsync >/dev/null 2>&1 +notify-send -u low -t 1750 'mbsync' ' fetching mail...' +mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc || notify-send -u low -t 1750 'mbsync' ' failed to fetch mail' + -- cgit v1.2.3