diff options
author | Zach van Rijn <me@zv.io> | 2023-12-03 22:27:19 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-12-03 22:27:19 -0600 |
commit | 0292167ae279cdf8eba4d653ffd45bfc579b96d2 (patch) | |
tree | 76558b72df01c7616dc0dfbb553e82700197ba34 /prepare | |
parent | 5a9d1e74ac191636b64f1c2ec77129a003955c98 (diff) | |
download | wallpapers-0292167ae279cdf8eba4d653ffd45bfc579b96d2.tar.gz wallpapers-0292167ae279cdf8eba4d653ffd45bfc579b96d2.tar.bz2 wallpapers-0292167ae279cdf8eba4d653ffd45bfc579b96d2.tar.xz wallpapers-0292167ae279cdf8eba4d653ffd45bfc579b96d2.zip |
Add crop margin for KDE. Resize polyguin to 80% height,
moves 'metadata.desktop' to the correct location, and
removes an erroneous line in the generated '.xml' file.
Diffstat (limited to 'prepare')
-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}; |