From 38110ef852373765de0c738aa54587b9ee640389 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 29 Oct 2019 19:51:58 +0100 Subject: Random changes. --- i3blocks/i3mailbox.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'i3blocks/i3mailbox.sh') diff --git a/i3blocks/i3mailbox.sh b/i3blocks/i3mailbox.sh index 89fb49a..70343c8 100755 --- a/i3blocks/i3mailbox.sh +++ b/i3blocks/i3mailbox.sh @@ -13,8 +13,11 @@ case $BLOCK_BUTTON in - Middle click syncs mail" ;; esac +syncIcon="" +[ -n "$(pgrep mbsync)" ] && syncIcon="🔃" gmailN="$(du -a ~/.mail/gmail/INBOX/new/* 2>/dev/null | sed -n '$=')" [ "$gmailN" ] || gmailN="0" unioviN="$(du -a ~/.mail/uniovi/INBOX/new/* 2>/dev/null | sed -n '$=')" [ "$unioviN" ] || unioviN="0" -echo "$(cat /tmp/imapsyncicon) Gmail: $gmailN uniovi: $unioviN" +#echo "$(cat /tmp/imapsyncicon) Gmail: $gmailN uniovi: $unioviN" +echo "$syncIcon Gmail: $gmailN uniovi: $unioviN" -- cgit v1.2.1