summaryrefslogtreecommitdiff
path: root/i3blocks-mail.sh
blob: 82e9582d9c0edd137f9c22c6a7984eb99e2a480e (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 
printf "\n"