hide polybar mail notification when no messages

This commit is contained in:
Noah Masur 2023-04-10 23:09:17 -04:00
parent cd067cce69
commit efb3933f5a

View File

@ -109,7 +109,7 @@
${pkgs.notmuch}/bin/notmuch new > /dev/null
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
if [ $UNREAD = "0" ]; then
echo "%{T3}%{T-} "
echo ""
else
echo "%{T2}%{T-} $UNREAD "
fi