aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-04 18:51:38 -0300
committerEuAndreh <eu@euandre.org>2022-01-04 18:51:38 -0300
commit8b6ec31695ca5cce8d780de355e283017ec9f08d (patch)
treeb41dd93d672051165cdd2dfc94ba17564eded736
parentxmonad/scripts/brightness.sh: Replace sudo with doas (diff)
downloaddotfiles-8b6ec31695ca5cce8d780de355e283017ec9f08d.tar.gz
dotfiles-8b6ec31695ca5cce8d780de355e283017ec9f08d.tar.xz
xmonad/scripts/xmobar-mail.sh: Fix notmuch query
-rwxr-xr-xxmonad/scripts/xmobar-mail.sh2
1 files changed, 1 insertions, 1 deletions
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