blob: a3c6d75e73f7de604b09f8a82d4e9a3b1cfaa8b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -m
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 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1
{
mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc ||
notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 &&
(sleep 1; kill -74 $(pidof dwmblocks) >/dev/null 2>&1)
}&
gsleep 0.2
kill -74 $(pidof dwmblocks) >/dev/null 2>&1
fg
|