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 ""