mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
use pidof to check for syncs
This commit is contained in:
parent
06fb70a6cb
commit
31f26c73b0
@ -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)"
|
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"
|
[ "$unread" = "0" ] && [ "$icon" = "" ] || echo "📬$unread$icon"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user