From d15225ca1fe4d83217b9ddb3f4a4f2d70320d21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 29 Sep 2020 22:59:02 +0200 Subject: [PATCH] fix(i3status-rust): notmuch query --- dot/i3status-rust.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/i3status-rust.nix b/dot/i3status-rust.nix index 31b2b8e..2d0fc24 100644 --- a/dot/i3status-rust.nix +++ b/dot/i3status-rust.nix @@ -105,7 +105,7 @@ in { block = "custom"; interval = 30; command = - let query = "tag:unread"; + let query = "tag:unread AND tag:inbox"; in pkgs.writers.writeDash "count-new-mail" '' mail_count="$(${pkgs.notmuch}/bin/notmuch search ${lib.escapeShellArg query} | wc -l)" [ "$mail_count" = 0 ] && printf "📭" || printf "📬"