summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-11 15:54:58 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-11 15:54:58 +0200
commit9bf21be97e74d73eeb9156029bbde0974351446a (patch)
treece6fad26b4cdaf43f93d4f0151f6ff1b2e496598 /.local/bin
parentupdate (diff)
downloaddotfiles-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.sh10
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'
+