From d8a50709a8dfb0f498367ef80c192138333aa08f Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 7 Apr 2021 20:23:08 +0200 Subject: Updated mail scripts for disroot account. --- i3blocks/i3mailbox.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'i3blocks') diff --git a/i3blocks/i3mailbox.sh b/i3blocks/i3mailbox.sh index b78528c..787885e 100755 --- a/i3blocks/i3mailbox.sh +++ b/i3blocks/i3mailbox.sh @@ -17,6 +17,7 @@ case $BLOCK_BUTTON in esac label=📫 +disrootInbox="$CONFIG_FOLDER_DISROOT_INBOX" gmailInbox="$CONFIG_FOLDER_GMAIL_INBOX" unioviInbox="$CONFIG_FOLDER_UNIOVI_INBOX" output="$label" @@ -26,6 +27,11 @@ syncIcon="" output="$output$syncIcon" shortOutput="$shortOutput$syncIcon" +if [ -n "$disrootInbox" ]; then + disrootN="$(ls "$disrootInbox"/* 2>/dev/null | wc -l)" + output="$output Disroot: $disrootN " + shortOutput="$shortOutput D: $disrootN " +fi if [ -n "$gmailInbox" ]; then gmailN="$(ls "$gmailInbox"/* 2>/dev/null | wc -l)" output="$output Gmail: $gmailN " @@ -37,6 +43,5 @@ if [ -n "$unioviInbox" ]; then shortOutput="$shortOutput U: $unioviN " fi -#echo "$(cat /tmp/imapsyncicon) Gmail: $gmailN uniovi: $unioviN" echo "${output% }" echo "${shortOutput% }" -- cgit v1.2.1