From 79e14bfbc2222ea017ddc4c75ec718e86ee4f46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 22 Aug 2022 10:29:04 +0200 Subject: [PATCH] feat(i3status-rust): todo empty if none due --- lib/i3status-rust.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i3status-rust.nix b/lib/i3status-rust.nix index b4abcac..3f6f269 100644 --- a/lib/i3status-rust.nix +++ b/lib/i3status-rust.nix @@ -92,7 +92,7 @@ in { | (map(select(.due >= now and .due < now + (60 * 60 * 24))) | length) as $dueToday | { icon: "tasks", - text: ($overdue + $dueToday) | tostring, + text: (($overdue + $dueToday) as $sum | if $sum > 0 then $sum | tostring else "" end), state: ( if $overdue > 0 then "Critical"