Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
306 B

new=$(notmuch search 'tag:inbox and tag:unread and NOT path:*/archive NOT tag:archive and NOT tag:spam and NOT tag:sent and NOT tag:draft' | wc -l)
if [[ $new != 0 ]]
then
dunstify --icon='/home/yigit/.icons/mail.png' -a 'New Email' "You have $new new mail."
fi
echo $new > /home/yigit/.config/mail_num