diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/fetch_mail.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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' + |