aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3mailbox.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-10-29 19:51:58 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-10-29 19:51:58 +0100
commit38110ef852373765de0c738aa54587b9ee640389 (patch)
treeddab8ea8b2338235b969d90665d1cd3fcc668cae /i3blocks/i3mailbox.sh
parent756f1c152ef3ca8f34a6f419b19b3ac254a5ada2 (diff)
downloadscripts-38110ef852373765de0c738aa54587b9ee640389.tar.gz
scripts-38110ef852373765de0c738aa54587b9ee640389.zip
Random changes.
Diffstat (limited to 'i3blocks/i3mailbox.sh')
-rwxr-xr-xi3blocks/i3mailbox.sh5
1 files changed, 4 insertions, 1 deletions
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"