diff options
author | Joe <bousset.rudy@gmail.com> | 2022-09-23 18:05:52 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-09-23 18:05:52 +0200 |
commit | bb4a92e4c29cfb8250ae0852bbbb9162c94efb66 (patch) | |
tree | 7f01d9943a59d3a0fa7467e1d2e01783a5374d92 /.local/bin/status | |
parent | up (diff) | |
download | dotfiles-bsd-bb4a92e4c29cfb8250ae0852bbbb9162c94efb66.tar.gz dotfiles-bsd-bb4a92e4c29cfb8250ae0852bbbb9162c94efb66.tar.bz2 dotfiles-bsd-bb4a92e4c29cfb8250ae0852bbbb9162c94efb66.tar.xz dotfiles-bsd-bb4a92e4c29cfb8250ae0852bbbb9162c94efb66.tar.zst dotfiles-bsd-bb4a92e4c29cfb8250ae0852bbbb9162c94efb66.zip |
good config
Diffstat (limited to '.local/bin/status')
-rwxr-xr-x | .local/bin/status/sb-mailbox | 17 |
1 files changed, 14 insertions, 3 deletions
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 |