summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/realwallpaper/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-03-07 23:09:50 +0100
committerlassulus <lassulus@lassul.us>2021-03-07 23:10:02 +0100
commita2e9c66ac223e272bf6adcd39bf2982f026bc31a (patch)
tree005888c90dccf547a028845446c601df1c9987f2 /krebs/5pkgs/simple/realwallpaper/default.nix
parentc45f79559d40806141f164fe7dd1ec03fb53bf39 (diff)
realwallpaper: filter markers without location
Diffstat (limited to 'krebs/5pkgs/simple/realwallpaper/default.nix')
-rw-r--r--krebs/5pkgs/simple/realwallpaper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/realwallpaper/default.nix b/krebs/5pkgs/simple/realwallpaper/default.nix
index a847fc1ee..04a2a6718 100644
--- a/krebs/5pkgs/simple/realwallpaper/default.nix
+++ b/krebs/5pkgs/simple/realwallpaper/default.nix
@@ -239,7 +239,7 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
''}
if [ -s marker.json ]; then
- jq -r 'to_entries[] | @json "\(.value.latitude) \(.value.longitude) image=krebs.png"' marker.json >> marker_file
+ jq -r 'to_entries[] | select(.value.latitude != null) | @json "\(.value.latitude) \(.value.longitude) image=krebs.png"' marker.json >> marker_file
fi
xplanet --num_times 1 --geometry $xplanet_out_size \