~ben/bin

d9fc76578df9fd2bc1978326eb56646f5776f819 — Ben Sima 11 months ago 3656524
eml: always show notification
1 files changed, 6 insertions(+), 4 deletions(-)

M eml
M eml => eml +6 -4
@@ 2,9 2,11 @@

count=$(notmuch count tag:inbox and tag:unread)

case "$1" in
    -n) [[ $count > 0 ]] && notify-send "New mail" "$count messages" ;;
    *) echo $count ;;
esac
if [[ $count > 0 ]]; then
    notify-send "New mail" "$count messages"
else
    notify-send "No new mail"
fi

echo $count
exit 0;