diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-11 15:54:58 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-11 15:54:58 +0200 |
commit | 9bf21be97e74d73eeb9156029bbde0974351446a (patch) | |
tree | ce6fad26b4cdaf43f93d4f0151f6ff1b2e496598 /.local/bin | |
parent | update (diff) | |
download | dotfiles-bsd-9bf21be97e74d73eeb9156029bbde0974351446a.tar.gz dotfiles-bsd-9bf21be97e74d73eeb9156029bbde0974351446a.tar.bz2 dotfiles-bsd-9bf21be97e74d73eeb9156029bbde0974351446a.tar.xz dotfiles-bsd-9bf21be97e74d73eeb9156029bbde0974351446a.tar.zst dotfiles-bsd-9bf21be97e74d73eeb9156029bbde0974351446a.zip |
update
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' + |