28 lines
840 B
Bash
28 lines
840 B
Bash
#!/usr/bin/env bash
|
|
# Generates the default SkyOS wallpaper as a PNG using ImageMagick.
|
|
# On the live system: sudo pacman -S imagemagick
|
|
# Output: skyos-default.png (1920x1080 — scales to any resolution via feh)
|
|
|
|
OUT="$(dirname "$0")/skyos-default.png"
|
|
|
|
if ! command -v convert &>/dev/null; then
|
|
echo "ImageMagick not found. Install it, or place any PNG at:"
|
|
echo " $OUT"
|
|
exit 0
|
|
fi
|
|
|
|
convert -size 1920x1080 \
|
|
gradient:"#4A6888-#2A3848" \
|
|
\( -size 1920x1080 xc:none \
|
|
-fill 'rgba(255,255,255,0.04)' \
|
|
-draw "roundrectangle 200,180 760,540 8,8" \
|
|
-draw "roundrectangle 840,220 1400,520 8,8" \
|
|
-draw "roundrectangle 1480,160 1860,580 8,8" \
|
|
\) \
|
|
-composite \
|
|
\( -size 1920x2 xc:"#6B8FB5" -resize 1920x1080\! \) \
|
|
-compose Overlay -composite \
|
|
"$OUT"
|
|
|
|
echo "Written: $OUT"
|