1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(i3status-rust): limit vax percentage length

This commit is contained in:
2021-06-14 12:45:24 +02:00
parent 52fd14c4fb
commit 5f0b0beb94

View File

@@ -97,7 +97,7 @@ in {
interval = 60 * 60;
command = pkgs.writers.writeDash "vax" ''
${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/vaccinations \
| ${pkgs.jq}/bin/jq -r '"💉 \(.data.quote * 100)% \(.data.secondVaccination.quote * 100)%"'
| ${pkgs.jq}/bin/jq -r '"💉 \(.data.quote * 1000 | floor | . / 10)% \(.data.secondVaccination.quote * 1000 | floor | . / 10)%"'
'';
}
{