re-introduce freedom to the weather
This commit is contained in:
parent
b81b30ec92
commit
eaf64f9523
@ -236,7 +236,7 @@ in {
|
|||||||
|
|
||||||
settings.mainbar = let
|
settings.mainbar = let
|
||||||
# weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/' | ${pkgs.coreutils}/bin/tr -s ' '";
|
# weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/' | ${pkgs.coreutils}/bin/tr -s ' '";
|
||||||
weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/' | ${pkgs.gnused}/bin/sed -e 's/[ +]//g' -e 's/0\\.0/0/g' -e 's/0\\./\\./g' -e 's/mph//g' -e 's/°F/°/g'";
|
weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?u&format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/' | ${pkgs.gnused}/bin/sed -e 's/[ +]//g' -e 's/0\\.0/0/g' -e 's/0\\./\\./g' -e 's/mph//g' -e 's/°F/°/g'";
|
||||||
in {
|
in {
|
||||||
position = lib.mkDefault "left";
|
position = lib.mkDefault "left";
|
||||||
height = lib.mkDefault null;
|
height = lib.mkDefault null;
|
||||||
|
Loading…
Reference in New Issue
Block a user