diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index d04b971..8f87d75 100755 --- a/.local/bin/statusbar/mailbox +++ b/.local/bin/statusbar/mailbox @@ -15,6 +15,6 @@ esac unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" -icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)" +pidof mbsync >/dev/null 2>&1 && icon="🔃" [ "$unread" = "0" ] && [ "$icon" = "" ] || echo "📬$unread$icon"