dl notification now available for LARBS
This commit is contained in:
parent
2063cda411
commit
8704d7aa15
@ -20,8 +20,13 @@ else
|
|||||||
notify() { pgrep -x dunst && notify-send -i ~/.config/mutt/etc/email.gif "$2 new mail(s) in \`$1\` account." ;}
|
notify() { pgrep -x dunst && notify-send -i ~/.config/mutt/etc/email.gif "$2 new mail(s) in \`$1\` account." ;}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo 🔃 > ~/.config/mutt/.dl
|
||||||
|
pkill -RTMIN+12 i3blocks
|
||||||
|
|
||||||
# Run offlineimap. You can feed this script different settings.
|
# Run offlineimap. You can feed this script different settings.
|
||||||
offlineimap -o "$@"
|
offlineimap -o "$@"
|
||||||
|
rm -f ~/.config/mutt/.dl
|
||||||
|
pkill -RTMIN+12 i3blocks
|
||||||
|
|
||||||
# Check all accounts/mailboxes for new mail. Notify if there is new content.
|
# Check all accounts/mailboxes for new mail. Notify if there is new content.
|
||||||
for account in $(ls ~/.mail)
|
for account in $(ls ~/.mail)
|
||||||
@ -32,7 +37,6 @@ do
|
|||||||
then
|
then
|
||||||
notify "$account" "$newcount" & disown
|
notify "$account" "$newcount" & disown
|
||||||
mpv --quiet ~/.config/mutt/etc/notify.opus
|
mpv --quiet ~/.config/mutt/etc/notify.opus
|
||||||
pkill -RTMIN+12 i3blocks # For my i3blocks setup. Updates new mail counter.
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
3
muttrc
3
muttrc
@ -18,6 +18,7 @@ set markers = no
|
|||||||
set mark_old = no
|
set mark_old = no
|
||||||
set mime_forward = yes
|
set mime_forward = yes
|
||||||
set smtp_authenticators = 'gssapi:login'
|
set smtp_authenticators = 'gssapi:login'
|
||||||
|
set wait_key = no
|
||||||
auto_view text/html
|
auto_view text/html
|
||||||
auto_view application/pdf
|
auto_view application/pdf
|
||||||
alternative_order text/plain text/enriched text/html
|
alternative_order text/plain text/enriched text/html
|
||||||
@ -36,7 +37,7 @@ bind index D delete-message
|
|||||||
bind index U undelete-message
|
bind index U undelete-message
|
||||||
bind index F search
|
bind index F search
|
||||||
bind index,pager R group-reply
|
bind index,pager R group-reply
|
||||||
macro index,pager S '<sync-mailbox>
|
macro index,pager S '<sync-mailbox><shell-escape>pkill -RTMIN+12 i3blocks<enter>'
|
||||||
macro index,pager \Cu |urlview\n
|
macro index,pager \Cu |urlview\n
|
||||||
|
|
||||||
# View attachments properly.
|
# View attachments properly.
|
||||||
|
Loading…
Reference in New Issue
Block a user