From 0292167ae279cdf8eba4d653ffd45bfc579b96d2 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sun, 3 Dec 2023 22:27:19 -0600 Subject: 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. --- prepare | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/prepare b/prepare index 35fe28b..7e5014a 100755 --- a/prepare +++ b/prepare @@ -5,7 +5,7 @@ # Purpose : Prepare wallpapers for Adélie desktop environments. # Authors : Zach van Rijn # 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 @@ -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 < "${KEEP}"/${name}/metadata.desktop <> "${temp}" <