possibly fix weather check
This commit is contained in:
parent
bb1819c726
commit
a4c070cd56
17
flake.lock
generated
17
flake.lock
generated
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user