Skip to content

Commit 9e95350

Browse files
committed
waybar: more accurate weather usage
1 parent de02a51 commit 9e95350

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

modules/home/programs/graphical/bars/waybar/modules/custom-modules.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ in
187187
};
188188

189189
"custom/weather" = {
190-
exec = "${getExe pkgs.wttrbar} --fahrenheit --ampm";
190+
exec = "${getExe pkgs.wttrbar} --fahrenheit --ampm${
191+
lib.optionalString (osConfig.khanelinix.security.sops.enable or false
192+
) " --location $(jq '.wttr.location' ~/weather_config.json)"
193+
}";
191194
return-type = "json";
192195
format = "{}";
193196
tooltip = true;

0 commit comments

Comments
 (0)