mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(i3status-rust): remove corona block
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user