re-introduce freedom to the weather

This commit is contained in:
notgne2 2022-12-18 03:03:25 -07:00
parent b81b30ec92
commit eaf64f9523
Signed by: notgne2
SSH Key Fingerprint: SHA256:qlFCAimT/PvNIG3u+aYT9pIqFCWgu6sNsWjpV1vHLIE

View File

@ -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;