From bb4a92e4c29cfb8250ae0852bbbb9162c94efb66 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 23 Sep 2022 18:05:52 +0200 Subject: good config --- .local/bin/status/sb-mailbox | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to '.local/bin/status') diff --git a/.local/bin/status/sb-mailbox b/.local/bin/status/sb-mailbox index db0dd4e..3ce5f31 100755 --- a/.local/bin/status/sb-mailbox +++ b/.local/bin/status/sb-mailbox @@ -13,8 +13,9 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -mb_a="$(ls "${MAIL:-/var/mail/jozan}"/bousset.rudy@gmail.com/INBOX/new/ | wc -l 2>/dev/null)" -mb_b="$(ls "${MAIL:-/var/mail/jozan}"/olsen.oyvind.nor@gmail.com/INBOX/new/ | wc -l 2>/dev/null)" +mb_a="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new/ | wc -l 2>/dev/null)" +mb_b="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new/ | wc -l 2>/dev/null)" +mb_c="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new/ | wc -l 2>/dev/null)" sync=0 if pidof mbsync >/dev/null 2>&1; then @@ -31,10 +32,20 @@ if [ "$mb_a" -gt 0 ]; then echo -n "A:" $mb_a fi -if [ "$mb_a" -gt 0 ] && [ "$mb_a" -gt 0 ]; then +if [ "$mb_a" -gt 0 ] && [ "$mb_b" -gt 0 ]; then echo -n " " fi if [ "$mb_b" -gt 0 ]; then echo -n "B:" $mb_b fi + +if [ "$mb_b" -gt 0 ] && [ "$mb_c" -gt 0 ]; then + echo -n " " +elif [ "$mb_a" -gt 0 ] && [ "$mb_c" -gt 0 ]; then + echo -n " " +fi + +if [ "$mb_c" -gt 0 ]; then + echo -n "C:" $mb_c +fi -- cgit v1.2.3