#!/bin/sh icon=󰶋 unread=$(ls ~/.mail/gmail/Inbox/new/ | wc -l | cut -w -f2) [ $unread -gt 0 ] && printf "%s%s" $icon $unread && notify-send "$unread unread email(s)" printf "\n"