#!/usr/bin/env python3 """Real settings/palette integration using disposable images and a recording wallpaper backend.""" import json,os,struct,subprocess,tempfile,time,zlib,shutil from pathlib import Path ROOT=Path(__file__).resolve().parents[1] BASE=['quickshell','ipc','--path',str(ROOT/'quickshell'),'call'] def ipc(target,method,*args): r=subprocess.run(BASE+[target,method,*map(str,args)],capture_output=True,text=True) return json.loads(r.stdout) if r.returncode==0 and r.stdout.strip() else None def state():return ipc('settingsTest','snapshot') or {} def eventually(check,label,timeout=12): end=time.monotonic()+timeout while time.monotonic()