From 8b6ec31695ca5cce8d780de355e283017ec9f08d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 4 Jan 2022 18:51:38 -0300 Subject: xmonad/scripts/xmobar-mail.sh: Fix notmuch query --- xmonad/scripts/xmobar-mail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmonad/scripts/xmobar-mail.sh b/xmonad/scripts/xmobar-mail.sh index 259e81b7..5f317053 100755 --- a/xmonad/scripts/xmobar-mail.sh +++ b/xmonad/scripts/xmobar-mail.sh @@ -2,7 +2,7 @@ set -eu while true; do - printf "mail: %s/%s - %s\n" "$(notmuch count tag:unread AND NOT tag:lists AND NOT tag:killed)" "$(notmuch count tag:inbox AND NOT tag:lists AND NOT tag:killed)" "$(msmtp-queue -d | grep -c '^From')" + printf "mail: %s/%s - %s\n" "$(notmuch count tag:unread AND \(tag:to-me OR to:nubank.com.br OR to:euandre.org\) AND NOT tag:killed AND NOT tag:archive)" "$(notmuch count tag:inbox AND \(tag:to-me OR to:nubank.com.br OR to:euandre.org\) AND NOT tag:killed AND NOT tag:archive)" "$(msmtp-queue -d | grep -c '^From')" if acpi -a | grep -q off-line; then sleep $((60 * 15)) else -- cgit v1.3