possibly fix weather check

This commit is contained in:
notgne2 2022-11-06 18:45:05 -07:00
parent bb1819c726
commit a4c070cd56
Signed by: notgne2
SSH Key Fingerprint: SHA256:qlFCAimT/PvNIG3u+aYT9pIqFCWgu6sNsWjpV1vHLIE
2 changed files with 1 additions and 18 deletions

17
flake.lock generated
View File

@ -128,22 +128,6 @@
"type": "github"
}
},
"done": {
"flake": false,
"locked": {
"lastModified": 1633849654,
"narHash": "sha256-6oeyN9ngXWvps1c5QAUjlyPDQwRWAoxBiVTNmZ4sG8E=",
"owner": "franciscolourenco",
"repo": "done",
"rev": "d6abb267bb3fb7e987a9352bc43dcdb67bac9f06",
"type": "github"
},
"original": {
"owner": "franciscolourenco",
"repo": "done",
"type": "github"
}
},
"firenvim": {
"flake": false,
"locked": {
@ -311,7 +295,6 @@
"base16-vscode": "base16-vscode",
"bemoji": "bemoji",
"bwmenu": "bwmenu",
"done": "done",
"firenvim": "firenvim",
"mudl": "mudl",
"nixpkgs": "nixpkgs",

View File

@ -374,7 +374,7 @@ in {
settings.mainbar = let
weatherCommand = f: "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR'";
weatherIf = "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%t' || echo 'ERR') | grep -c 'ERR|Unknown'";
weatherIf = "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%t' || echo 'ERR') | ${pkgs.gnugrep}/bin/grep -vE '^ERR$|^Unknown'";
in {
position = lib.mkDefault "left";
height = lib.mkDefault null;