Initial AeroOS source

This commit is contained in:
Joe committed 2026-06-19 10:02:12 -04:00
commit b27732ad89
42 files changed
+3775

No files matched your search

+96
View File
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- AeroOS default wallpaper — "Frutiger Aero" aesthetic:
glossy sky gradient, soft clouds, sun bloom + lens flare, translucent
bubbles/orbs, a glossy green hill and a reflective water band. 1920x1080. -->
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"
viewBox="0 0 1920 1080">
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#0a3d8f"/>
<stop offset="35%" stop-color="#1f7ed6"/>
<stop offset="70%" stop-color="#69c6f5"/>
<stop offset="100%" stop-color="#bfeeff"/>
</linearGradient>
<radialGradient id="sun" cx="74%" cy="20%" r="40%">
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.95"/>
<stop offset="18%" stop-color="#fff6cf" stop-opacity="0.8"/>
<stop offset="45%" stop-color="#bfe9ff" stop-opacity="0.25"/>
<stop offset="100%" stop-color="#bfe9ff" stop-opacity="0"/>
</radialGradient>
<linearGradient id="hill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#9fe04a"/>
<stop offset="40%" stop-color="#5fb828"/>
<stop offset="100%" stop-color="#2f7d12"/>
</linearGradient>
<linearGradient id="hillgloss" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.55"/>
<stop offset="100%" stop-color="#ffffff" stop-opacity="0"/>
</linearGradient>
<linearGradient id="water" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#bfeeff" stop-opacity="0.9"/>
<stop offset="100%" stop-color="#2f9fd6" stop-opacity="0.9"/>
</linearGradient>
<radialGradient id="orb" cx="35%" cy="30%" r="75%">
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.95"/>
<stop offset="35%" stop-color="#cfeffe" stop-opacity="0.45"/>
<stop offset="80%" stop-color="#8fd6f7" stop-opacity="0.18"/>
<stop offset="100%" stop-color="#8fd6f7" stop-opacity="0"/>
</radialGradient>
<filter id="soft" x="-30%" y="-30%" width="160%" height="160%">
<feGaussianBlur stdDeviation="14"/>
</filter>
<filter id="softer" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="30"/>
</filter>
</defs>
<!-- sky + sun bloom -->
<rect width="1920" height="1080" fill="url(#sky)"/>
<rect width="1920" height="1080" fill="url(#sun)"/>
<!-- soft clouds -->
<g fill="#ffffff" opacity="0.85" filter="url(#soft)">
<ellipse cx="320" cy="180" rx="220" ry="70"/>
<ellipse cx="520" cy="210" rx="180" ry="60"/>
<ellipse cx="1500" cy="120" rx="260" ry="80"/>
<ellipse cx="1180" cy="300" rx="160" ry="48"/>
</g>
<!-- lens-flare specks -->
<g fill="#ffffff">
<circle cx="1421" cy="216" r="9" opacity="0.9"/>
<circle cx="1180" cy="360" r="20" opacity="0.25"/>
<circle cx="980" cy="470" r="13" opacity="0.30"/>
<circle cx="760" cy="560" r="28" opacity="0.18"/>
</g>
<!-- glossy green hill -->
<path d="M0,760 C 420,650 900,720 1280,690 C 1600,665 1800,700 1920,680 L1920,1080 L0,1080 Z"
fill="url(#hill)"/>
<path d="M0,760 C 420,650 900,720 1280,690 C 1600,665 1800,700 1920,680 L1920,792
C 1740,772 1500,800 1180,792 C 820,782 360,742 0,824 Z"
fill="url(#hillgloss)" opacity="0.5"/>
<!-- reflective water band -->
<path d="M0,930 C 500,905 1200,945 1920,915 L1920,1080 L0,1080 Z"
fill="url(#water)"/>
<g stroke="#ffffff" stroke-opacity="0.5" stroke-width="3" fill="none">
<path d="M120,985 q 140,-14 280,0"/>
<path d="M620,1010 q 160,-14 320,0"/>
<path d="M1180,980 q 150,-12 300,0"/>
</g>
<!-- floating translucent bubbles/orbs -->
<g>
<circle cx="300" cy="520" r="120" fill="url(#orb)"/>
<circle cx="1580" cy="430" r="170" fill="url(#orb)"/>
<circle cx="980" cy="250" r="70" fill="url(#orb)"/>
<circle cx="1300" cy="600" r="60" fill="url(#orb)"/>
<circle cx="640" cy="360" r="45" fill="url(#orb)"/>
<circle cx="1750" cy="780" r="90" fill="url(#orb)" opacity="0.8"/>
<circle cx="170" cy="820" r="55" fill="url(#orb)" opacity="0.8"/>
</g>
<!-- bottom vignette for depth -->
<rect y="900" width="1920" height="180" fill="#06243f" opacity="0.18" filter="url(#softer)"/>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

+129
View File
@@ -0,0 +1,129 @@
#!/usr/bin/env python3
"""Procedural Frutiger Aero wallpaper -> PNG, using only the Python stdlib.
Guaranteed to work on any host (no ImageMagick/librsvg/Pillow needed): it draws
the scene pixel-by-pixel and encodes a PNG with zlib. The build prefers
rsvg-convert on the bundled SVG when available and only falls back to this.
Usage: gen_wallpaper.py OUTPUT.png [WIDTH HEIGHT]
"""
import math
import struct
import sys
import zlib
def lerp(a, b, t):
return a + (b - a) * t
def clamp(v, lo=0.0, hi=255.0):
return max(lo, min(hi, v))
def gen(width, height):
# precompute a few orbs (x, y, radius)
orbs = [
(0.16 * width, 0.48 * height, 0.11 * height),
(0.82 * width, 0.40 * height, 0.16 * height),
(0.51 * width, 0.23 * height, 0.06 * height),
(0.68 * width, 0.56 * height, 0.055 * height),
(0.33 * width, 0.33 * height, 0.04 * height),
(0.91 * width, 0.72 * height, 0.085 * height),
(0.09 * width, 0.76 * height, 0.05 * height),
]
sun_x, sun_y = 0.74 * width, 0.20 * height
hill_y = 0.70 * height
water_y = 0.86 * height
raw = bytearray()
for y in range(height):
raw.append(0) # PNG filter byte: none
fy = y / height
for x in range(width):
fx = x / width
# --- sky vertical gradient (deep blue -> pale cyan) ---
if fy < 0.35:
t = fy / 0.35
r = lerp(10, 31, t); g = lerp(61, 126, t); b = lerp(143, 214, t)
elif fy < 0.70:
t = (fy - 0.35) / 0.35
r = lerp(31, 105, t); g = lerp(126, 198, t); b = lerp(214, 245, t)
else:
r, g, b = 191, 238, 255
# --- sun bloom (radial) ---
d = math.hypot(x - sun_x, y - sun_y) / (0.42 * width)
if d < 1.0:
glow = (1.0 - d) ** 2
r = lerp(r, 255, glow * 0.9)
g = lerp(g, 250, glow * 0.9)
b = lerp(b, 215, glow * 0.7)
# --- glossy green hill ---
hy = hill_y + 40 * math.sin(fx * math.pi * 1.3)
if y > hy:
t = clamp((y - hy) / (height - hy)) / 255.0 * 255
tt = (y - hy) / max(1, (height - hy))
hr = lerp(159, 47, tt); hg = lerp(224, 125, tt); hb = lerp(74, 18, tt)
# top gloss highlight
gloss = max(0.0, 1.0 - (y - hy) / (0.06 * height))
hr = lerp(hr, 255, gloss * 0.5)
hg = lerp(hg, 255, gloss * 0.5)
hb = lerp(hb, 255, gloss * 0.5)
r, g, b = hr, hg, hb
# --- reflective water band over the lower area ---
if y > water_y:
tt = (y - water_y) / max(1, (height - water_y))
wr = lerp(191, 47, tt); wg = lerp(238, 159, tt); wb = lerp(255, 214, tt)
r = lerp(r, wr, 0.85); g = lerp(g, wg, 0.85); b = lerp(b, wb, 0.85)
if abs(math.sin((fx * 40) + (y * 0.3))) > 0.97:
r = lerp(r, 255, 0.4); g = lerp(g, 255, 0.4); b = lerp(b, 255, 0.4)
# --- translucent orbs/bubbles ---
for ox, oy, orad in orbs:
od = math.hypot(x - ox, y - oy) / orad
if od < 1.0:
# bright rim + soft white core, additive-ish
core = (1.0 - od) ** 1.5
rim = math.exp(-((od - 0.85) ** 2) / 0.01) * 0.6
a = clamp((core * 0.45 + rim) , 0, 1)
r = lerp(r, 255, a * 0.8)
g = lerp(g, 255, a * 0.85)
b = lerp(b, 255, a * 0.9)
raw.append(int(clamp(r)))
raw.append(int(clamp(g)))
raw.append(int(clamp(b)))
return bytes(raw)
def write_png(path, width, height, raw):
def chunk(tag, data):
c = tag + data
return struct.pack(">I", len(data)) + c + struct.pack(">I", zlib.crc32(c) & 0xffffffff)
sig = b"\x89PNG\r\n\x1a\n"
ihdr = struct.pack(">IIBBBBB", width, height, 8, 2, 0, 0, 0) # 8-bit RGB
idat = zlib.compress(raw, 9)
with open(path, "wb") as f:
f.write(sig)
f.write(chunk(b"IHDR", ihdr))
f.write(chunk(b"IDAT", idat))
f.write(chunk(b"IEND", b""))
def main():
if len(sys.argv) < 2:
sys.exit("usage: gen_wallpaper.py OUTPUT.png [WIDTH HEIGHT]")
out = sys.argv[1]
w = int(sys.argv[2]) if len(sys.argv) > 2 else 1920
h = int(sys.argv[3]) if len(sys.argv) > 3 else 1080
write_png(out, w, h, gen(w, h))
print(f"wrote {out} ({w}x{h})")
if __name__ == "__main__":
main()