diff --git a/common/xfwm4/render-assets.sh b/common/xfwm4/render-assets.sh index f38ea37..4ad9a52 100755 --- a/common/xfwm4/render-assets.sh +++ b/common/xfwm4/render-assets.sh @@ -10,6 +10,7 @@ DARK_ASSETS_DIR="assets-dark" INDEX="assets.txt" +# PNG rendering for i in `cat $INDEX` do if [ -f $ASSETS_DIR/$i.png ]; then @@ -33,4 +34,23 @@ else && $OPTIPNG -o7 --quiet $DARK_ASSETS_DIR/$i.png fi done -exit 0 + +# XPM creation +for i in `cat $INDEX` +do +if [ -f $ASSETS_DIR/$i.xpm ]; then + echo $ASSETS_DIR/$i.xpm exists. +else + echo + echo Creating $ASSETS_DIR/$i.xpm + convert $ASSETS_DIR/$i.png $ASSETS_DIR/$i.xpm +fi +if [ -f $DARK_ASSETS_DIR/$i.xpm ]; then + echo $DARK_ASSETS_DIR/$i.xpm exists. +else + echo + echo Creating $DARK_ASSETS_DIR/$i.xpm + convert $DARK_ASSETS_DIR/$i.png $DARK_ASSETS_DIR/$i.xpm +fi +done +exit 0 \ No newline at end of file