~ben/bin

ref: 60d5cb20cdb0e84918a43228eb86218285d945b4 bin/eml -rwxr-xr-x 174 bytes View raw
60d5cb20Ben Sima move window to top-right 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

count=$(notmuch count tag:new)

case "$1" in
    -n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;
    *) echo $count ;;
esac

exit 0;