diff options
Diffstat (limited to 'config/i3blocks/scripts/email')
-rwxr-xr-x | config/i3blocks/scripts/email | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/i3blocks/scripts/email b/config/i3blocks/scripts/email deleted file mode 100755 index 142f422..0000000 --- a/config/i3blocks/scripts/email +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -filter=("tag:unread" "and" "not" "tag:killed") - -part=() -all=0 -for mail in email gmail elektroline fel; do - counts="$(notmuch count -- "${filter[@]}" and "tag:$mail")" - [ "$counts" = "0" ] || \ - part+=("$mail:$counts") - ((all = all + counts)) -done - -echo "${part[@]}" -if [ "$all" = "0" ]; then - echo -else - echo "mails:$all" -fi -echo "#ffff00" |