From c85b73a8748e821d42c6e487d8aec4559e3d8236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 3 May 2021 06:40:06 +0200 Subject: [PATCH] feat(i3status-rust): round down incidence since thats what counts --- lib/i3status-rust.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/i3status-rust.nix b/lib/i3status-rust.nix index 9647868..c4954f3 100644 --- a/lib/i3status-rust.nix +++ b/lib/i3status-rust.nix @@ -99,8 +99,7 @@ in { area = "states"; # "districts"; code = "BE"; # "11007"; in pkgs.writers.writeDash "incidence" '' - printf "📈" - ${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code} | "\(.name): \(.weekIncidence | round)"' + ${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code} | "📈 \(.name): \(.weekIncidence | floor)"' ''; } {