Repository navigation
wallpaper_watch: pick up pictures an add-on swaps into wallpapers/ without restarting Home #4319
Vaibhav-chandak
started this conversation in
Ideas
Replies: 1 comment
|
Update: following the decision on #4318, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I built a small app, TV Unsplash wallpapers, that puts a new Unsplash photo on Home, with its place and photographer as the caption: by default four landscapes a day matched to the light (sunrise, day, sunset, night), or 1 to 48 a day on your own topics or Unsplash collections, set from its setup script. It writes through the ThemeProvider (
wallpapers/<photo>.jpgandwallpapers/captions.txt), deleting the previous photo. It has run on a Xiaomi MiTV-MOOQ1 (Android 10) since 17 November.The launcher reads the collection and the captions once, when Home is built, so a swapped photo only shows after Home restarts. I would like to propose an off-by-default key:
wallpaper_watch(bool, default false). With it on, and the whole collection on screen (no on-TV pick),WallpaperPlayer.update()- already called by Home's minute tick, only while Home is visible - listswallpapers/and statscaptions.txt; when the names, sizes or the captions' stamp changed, it re-reads the pictures and captions and moves to a new picture if the shown one is gone. No receiver, no service, no new permission, nothing at all while the key is off or Home is hidden.It pairs with
wallpaper_scrim(#4318), which darkens each fetched photo behind the text only as much as it needs, and with the sRGB decode fix (#4317), without which a colour-profiled photo from Unsplash made Home stutter. If this is better as something else (a module-card contract, or a showcase-only fork), I am happy to go that way.The app is listed for SHOWCASE in #4320. This is it on the TV, with
wallpaper_scrimon:All reactions