diff options
-rwxr-xr-x | prepare | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -5,7 +5,7 @@ # Purpose : Prepare wallpapers for Adélie desktop environments. # Authors : Zach van Rijn <me@zv.io> # License : Apache 2.0 -# Revision : 20231202 +# Revision : 20231203 #=============================================================== #=============================================================== @@ -298,10 +298,14 @@ make_fake () # FIXME: this is literal magic? composite \ + \( \ -compose atop \ -gravity southwest \ -background none \ + -resize ${size%x*}x$((${size#*x}*80/100)) \ "${TEMP}"/polyguin.svg \ + -geometry +0+100 \ + \) \ "${name}" \ "${name}" \ ; @@ -310,7 +314,7 @@ make_fake () -gravity southeast \ -background none \ "${TEMP}"/gen_polylogo_template_${temp}.png \ - -geometry +50+20 \ + -geometry +50+100 \ "${name}" \ "${name}" \ ; @@ -416,7 +420,6 @@ done # temp=$(mktemp); cat >> "${temp}" <<"EOF" -gnome-background-properties/Adelie.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd"> <wallpapers> @@ -447,7 +450,7 @@ find "${TEMP}"/generated -mindepth 1 -maxdepth 1 -type d | sort | while read k; # write metadata to 'manifest.desktop' # FIXME: we can do better than 'tr' below, but also what are # the actual requirements? I'm just emulating what exists... - cat > "${KEEP}"/${name}/contents/metadata.desktop <<EOF + cat > "${KEEP}"/${name}/metadata.desktop <<EOF [Desktop Entry] Name=${description} X-KDE-PluginInfo-Name=$(printf "%s\n" "${description}" | tr ' ' '-') @@ -457,7 +460,6 @@ EOF # write metadata to 'gnome-background-properties/Adelie.xml' find "${KEEP}"/${name}/contents/images -type f \ - | grep -v metadata.desktop \ | grep -v screenshot \ | sort | while read file; do cat >> "${temp}" <<EOF @@ -496,4 +498,4 @@ tar -pcJf adelie-wallpapers-${VTAG}.tar.xz adelie-wallpapers-${VTAG}; # clean up rm -fr "${TEMP}"/generated; -rm -fr adelie-wallpapers-${VTAG};
\ No newline at end of file +rm -fr adelie-wallpapers-${VTAG}; |