From 5bd2886fe2f2dd200fc993dd9851d56e3a50332b Mon Sep 17 00:00:00 2001 From: samedami Date: Fri, 15 May 2020 12:18:56 +0200 Subject: [PATCH] Fix 'mails' module --- .local/bin/scripts/dwmbar/mails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/scripts/dwmbar/mails b/.local/bin/scripts/dwmbar/mails index 9f853fb..a253a20 100755 --- a/.local/bin/scripts/dwmbar/mails +++ b/.local/bin/scripts/dwmbar/mails @@ -6,4 +6,4 @@ unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)" -[ "$unread" = "0" ] && [ "$icon" = "" ] || echo " $unread$icon" +[ "$unread" -gt "0" ] && echo " $unread$icon" || echo ""