summaryrefslogtreecommitdiff
path: root/i3blocks-mail.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-05-19 18:51:14 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-05-19 18:51:14 -0400
commitcab073ae08de3da46c6bf7b8c14e53a330b4ed9c (patch)
tree0f05fed3abe5b3b2c1418718c98345a8ad7b837e /i3blocks-mail.sh
parent07b492219f65cbd952a5caebeec764b3fd5cd477 (diff)
downloadscripts-cab073ae08de3da46c6bf7b8c14e53a330b4ed9c.tar.xz
scripts-cab073ae08de3da46c6bf7b8c14e53a330b4ed9c.zip
hiding certain blocks when nothing to report
Diffstat (limited to 'i3blocks-mail.sh')
-rwxr-xr-xi3blocks-mail.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/i3blocks-mail.sh b/i3blocks-mail.sh
index b370f24..2ec5d14 100755
--- a/i3blocks-mail.sh
+++ b/i3blocks-mail.sh
@@ -1,5 +1,6 @@
#!/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 email(s)"
+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"