diff --git a/dot/i3status-rust.nix b/dot/i3status-rust.nix index deecb0c..b220c4a 100644 --- a/dot/i3status-rust.nix +++ b/dot/i3status-rust.nix @@ -4,6 +4,17 @@ let pkgs.writers.writeDash "setsid-command" '' ${pkgs.utillinux}/bin/setsid ${script} ''; + coronaBlock = { + block = "custom"; + interval = 60 * 2; # every two minutes + command = pkgs.writers.writeDash "corona" '' + ${pkgs.curl}/bin/curl https://corona-stats.online/germany \ + | ${pkgs.gnugrep}/bin/grep Germany \ + | ${pkgs.gnused}/bin/sed 's/\s*//g' \ + | ${pkgs.ansifilter}/bin/ansifilter \ + | ${pkgs.gawk}/bin/awk -F'│' '{print "🤒 " $8 " 💀 " $5}' + ''; + }; in { theme = { name = "plain"; @@ -59,17 +70,6 @@ in { }; }; block = [ - { - block = "custom"; - interval = 60 * 2; # every two minutes - command = pkgs.writers.writeDash "corona" '' - ${pkgs.curl}/bin/curl https://corona-stats.online/germany \ - | ${pkgs.gnugrep}/bin/grep Germany \ - | ${pkgs.gnused}/bin/sed 's/\s*//g' \ - | ${pkgs.ansifilter}/bin/ansifilter \ - | ${pkgs.gawk}/bin/awk -F'│' '{print "🤒 " $8 " 💀 " $5}' - ''; - } { block = "custom"; interval = 20;