realwallpaper: add krebs-stars-berlin version
This commit is contained in:
parent
fd3dff19ed
commit
020154a859
@ -297,6 +297,26 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
|
|||||||
shade=15
|
shade=15
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
xplanet --num_times 1 --geometry $xplanet_out_size \
|
||||||
|
--latitude 52.520008 --longitude 13.404954 \
|
||||||
|
--output xplanet-krebs-stars-berlin-output.png --projection merc \
|
||||||
|
-config ${pkgs.writeText "xplanet-krebs-stars.config" ''
|
||||||
|
[default]
|
||||||
|
|
||||||
|
arc_thickness=1
|
||||||
|
arc_file=constellations.arcs
|
||||||
|
|
||||||
|
[earth]
|
||||||
|
"Earth"
|
||||||
|
map=daymap-final.png
|
||||||
|
night_map=nightmap-final.png
|
||||||
|
cloud_map=clouds.png
|
||||||
|
cloud_threshold=1
|
||||||
|
cloud_gamma=10
|
||||||
|
marker_file=marker_file
|
||||||
|
shade=15
|
||||||
|
''}
|
||||||
|
|
||||||
# trim xplanet output
|
# trim xplanet output
|
||||||
if needs_rebuild realwallpaper.png xplanet-output.png; then
|
if needs_rebuild realwallpaper.png xplanet-output.png; then
|
||||||
convert xplanet-output.png -crop $out_geometry \
|
convert xplanet-output.png -crop $out_geometry \
|
||||||
@ -323,6 +343,12 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
|
|||||||
realwallpaper-krebs-stars-tmp.png
|
realwallpaper-krebs-stars-tmp.png
|
||||||
mv realwallpaper-krebs-stars-tmp.png realwallpaper-krebs-stars.png
|
mv realwallpaper-krebs-stars-tmp.png realwallpaper-krebs-stars.png
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if needs_rebuild realwallpaper-krebs-stars-berlin.png xplanet-krebs-stars-berlin-output.png; then
|
||||||
|
convert xplanet-krebs-stars-berlin-output.png -crop $out_geometry \
|
||||||
|
realwallpaper-krebs-stars-berlin-tmp.png
|
||||||
|
mv realwallpaper-krebs-stars-berlin-tmp.png realwallpaper-krebs-stars-berlin.png
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
@ -31,6 +31,9 @@ in {
|
|||||||
locations."/realwallpaper-krebs-stars.png".extraConfig = ''
|
locations."/realwallpaper-krebs-stars.png".extraConfig = ''
|
||||||
root /var/realwallpaper/;
|
root /var/realwallpaper/;
|
||||||
'';
|
'';
|
||||||
|
locations."/realwallpaper-krebs-stars-berlin.png".extraConfig = ''
|
||||||
|
root /var/realwallpaper/;
|
||||||
|
'';
|
||||||
locations."/realwallpaper-video.mp4".extraConfig = ''
|
locations."/realwallpaper-video.mp4".extraConfig = ''
|
||||||
root /var/realwallpaper/archive;
|
root /var/realwallpaper/archive;
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user