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

4 years ago
  1. 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)
  2. if [[ $new != 0 ]]
  3. then
  4. dunstify --icon='/home/yigit/.icons/mail.png' -a 'New Email' "You have $new new mail."
  5. fi
  6. echo $new > /home/yigit/.config/mail_num