mirror of
https://github.com/kmein/niveum
synced 2026-03-20 20:01: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.writers.writeDash "setsid-command" ''
|
||||||
${pkgs.utillinux}/bin/setsid ${script}
|
${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 {
|
in {
|
||||||
theme = {
|
theme = {
|
||||||
name = "plain";
|
name = "plain";
|
||||||
@@ -59,17 +70,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
block = [
|
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";
|
block = "custom";
|
||||||
interval = 20;
|
interval = 20;
|
||||||
|
|||||||
Reference in New Issue
Block a user