dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

mailup (287B)


      1 #!/bin/sh
      2 
      3 pgrep -f mbsync && exit
      4 
      5 mbsync "${1:--a}"
      6 
      7 test "$(find "${XDG_DATA_HOME}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f 2>/dev/null | wc -l)" -gt 0 && \
      8 notify-send -i /usr/local/share/icons/ubo-icons-0.1alpha/128x128/apps/email.png "You've got mail.\n"
      9 notmuch new 2>/dev/null