Make the wallpaper picker a full-screen live preview

The screen previews the selected wallpaper with the real transition
(TransitionStage, now shared with the desktop background) under a
frosted sheet with a 16:9 thumbnail grid. Click or arrows preview,
double-click or Enter applies and switches the picker's output directly,
Space peeks, typing searches. Thumbnails mark outline wallpapers (wallfx
status).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-08 22:52:55 +01:00
1 parent b6d0da4679
commit de9b863f3f
7 files changed
+486 -221

No files matched your search

+10 -1
View File
@@ -18,6 +18,7 @@ JSON object:
{"kind": "colonies", "pending": true} when IMG is not
processed yet, {"kind": "colonies"} when it has no subject.
Uses only the standard library, so it answers at once.
status IMG... {IMG: "outline" | "colonies" | "pending"}; standard library only.
warm IMG... processes every image not cached yet; one warm at a time.
outline IMG [--force]
@@ -225,7 +226,7 @@ def warm(paths):
def main(argv):
if len(argv) < 2 or argv[0] not in ("choose", "warm", "outline"):
if len(argv) < 2 or argv[0] not in ("choose", "status", "warm", "outline"):
print(__doc__, file=sys.stderr)
return 2
cmd, rest = argv[0], argv[1:]
@@ -238,6 +239,14 @@ def main(argv):
out = {"kind": "outline", "field": hit[0], "line": hit[1]}
else:
out = {"kind": "colonies", "pending": hit is None and bool(MODEL)}
elif cmd == "status":
out = {}
for path in rest:
try:
hit = cached(path)
except OSError:
continue
out[path] = "outline" if hit else ("pending" if hit is None else "colonies")
elif not MODEL or not os.path.exists(MODEL):
print("wallfx: GLASSMXRPH_WALLFX_MODEL is not set or missing", file=sys.stderr)
return 1