use pidof to check for syncs
This commit is contained in:
parent
06fb70a6cb
commit
31f26c73b0
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue