diff options
author | joe <rbo@gmx.us> | 2025-09-29 17:45:57 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-09-29 17:45:57 +0200 |
commit | 142288b95fea7a7fa9ba8050ecf256ef6a6df2b2 (patch) | |
tree | 9645e3e9b4dff531166d1e90cd850d217c795f1a /.local | |
parent | up (diff) | |
download | dotfiles-bsd-142288b95fea7a7fa9ba8050ecf256ef6a6df2b2.tar.gz dotfiles-bsd-142288b95fea7a7fa9ba8050ecf256ef6a6df2b2.tar.bz2 dotfiles-bsd-142288b95fea7a7fa9ba8050ecf256ef6a6df2b2.tar.xz dotfiles-bsd-142288b95fea7a7fa9ba8050ecf256ef6a6df2b2.tar.zst dotfiles-bsd-142288b95fea7a7fa9ba8050ecf256ef6a6df2b2.zip |
up
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/fetch_mail.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index 416f7e0..061232d 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -16,14 +16,14 @@ else fi if ! echo test | gpg2 --sign --batch --no-tty --pinentry-mode error -o /dev/null >/dev/null 2>&1; then - notify-send -u low -t 6000 'mbsync' ' GPG locked' + notify-send -u critical -t 6000 'mbsync' ' GPG locked' exit 1 fi killall mbsync >/dev/null 2>&1 -notify-send -u low -t 3000 'mbsync' ' fetching mail' >/dev/null 2>&1 +notify-send -u critical -t 3000 'mbsync' ' fetching mail' >/dev/null 2>&1 # { mbsync -a || - notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 + notify-send -u critical -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 # }& # gsleep 0.2 # kill -74 $(pidof dwmblocks) >/dev/null 2>&1 @@ -35,7 +35,7 @@ mb1="$(ls "${MAIL:-/var/mail/jozan}"/gmx_shop/INBOX/new | wc -l 2>/dev/null)" # mb2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new | wc -l 2>/dev/null)" post_count="$((post_count + mb1))" if [ $post_count -gt $pre_count ]; then - notify-send -u normal 'NeoMutt' ' '$post_count' new mail(s)' + notify-send -u normal 'neomutt' ' '$post_count' new mail(s)' fi echo $post_count >$mc_file # sleep 1 |