summaryrefslogtreecommitdiff
path: root/i3blocks-mail.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-05-19 16:55:44 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-05-19 16:55:44 -0400
commit86bda792526ffbd675afd3e0841cce517187bde6 (patch)
treeb99117826b702daed7d1b32ac0eac2bc3cc78779 /i3blocks-mail.sh
parent0ce7301d8799ba91a0d57ab208e2d80d20935a83 (diff)
downloadscripts-86bda792526ffbd675afd3e0841cce517187bde6.tar.xz
scripts-86bda792526ffbd675afd3e0841cce517187bde6.zip
added screencasting script, mail block, minor tweaks
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"