mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
fix(i3status-rust): limit vax percentage length
This commit is contained in:
@@ -97,7 +97,7 @@ in {
|
|||||||
interval = 60 * 60;
|
interval = 60 * 60;
|
||||||
command = pkgs.writers.writeDash "vax" ''
|
command = pkgs.writers.writeDash "vax" ''
|
||||||
${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/vaccinations \
|
${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)%"'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user