Draw a wallpaper's subject outline first when changing to it

helpers/wallfx.py finds the subject with BiRefNet (onnxruntime, CPU),
bakes outline maps per wallpaper and caches them; scans warm the cache in
the background. The transition shader gains an outline mode: the line is
drawn, the subject fills in, then the rest grows out of it. Uncached or
subject-less wallpapers keep the colonies. wallpaper.outlineExclude opts
wallpapers out. The Nix package provides the interpreter and the model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-08 22:37:33 +01:00
1 parent ad740ef631
commit b6d0da4679
10 files changed
+491 -28

No files matched your search

+1
View File
@@ -96,6 +96,7 @@ function validate(c) {
if(!Number.isInteger(c.metrics.interval) || c.metrics.interval<1 || c.metrics.interval>30)throw Error("Invalid metrics geometry or interval");
if(!Array.isArray(c.metrics.storagePaths) || c.metrics.storagePaths.length>8 || c.metrics.storagePaths.some(p=>typeof p!=="string" || !p.startsWith("/") || p.includes("\u0000")) || new Set(c.metrics.storagePaths).size!==c.metrics.storagePaths.length || typeof c.metrics.networkInterface!=="string" || !c.metrics.networkInterface || typeof c.metrics.gpu!=="string" || !c.metrics.gpu)throw Error("Invalid metrics sources");
if(!Array.isArray(c.wallpaper.history) || c.wallpaper.history.length>50 || c.wallpaper.history.some(p=>typeof p!=="string"))throw Error("Invalid wallpaper history");
if(!Array.isArray(c.wallpaper.outlineExclude) || c.wallpaper.outlineExclude.some(p=>typeof p!=="string"))throw Error("Invalid wallpaper outline exclusions");
if(typeof c.hyprglass.enabled!=="boolean" || typeof c.hyprglass.layers!=="boolean" || typeof c.hyprglass.effectEnabled!=="boolean")throw Error("Invalid glass toggle");
for(const [key,min,max] of [["blur_strength",0,5],["blur_iterations",1,5],["refraction_strength",0,8],["chromatic_aberration",0,1],["fresnel_strength",0,1],["specular_strength",0,1],["edge_thickness",0,.15],["lens_distortion",0,1],["brightness",.2,2],["contrast",.2,2],["saturation",0,2],["vibrancy",0,1],["adaptive_dim",0,1]])if(!Number.isFinite(c.hyprglass.values[key]) || c.hyprglass.values[key]<min || c.hyprglass.values[key]>max)throw Error("Invalid glass "+key);
if(!Number.isInteger(c.hyprglass.values.blur_iterations))throw Error("Invalid blur passes");