diff options
Diffstat (limited to 'i3blocks-mail.sh')
-rwxr-xr-x | i3blocks-mail.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/i3blocks-mail.sh b/i3blocks-mail.sh new file mode 100755 index 0000000..ecc45ff --- /dev/null +++ b/i3blocks-mail.sh @@ -0,0 +1,5 @@ +#!/bin/sh +icon= + +unread=$(ls -l ~/.mail/gmail/Inbox/new | wc -l | cut -w -f2) +[ $unread -gt 0 ] && printf "%s%s\n" $icon $unread && notify-send "$unread unread emails" |