summaryrefslogtreecommitdiff
path: root/i3blocks-mail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3blocks-mail.sh')
-rwxr-xr-xi3blocks-mail.sh5
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"