summaryrefslogtreecommitdiff
path: root/i3blocks-mail.sh
blob: 2ec5d148eba51a02c6c4f83b79d912b651b3d42d (plain) (blame)
1
2
3
4
5
6
#!/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"