Go to index / Go to protocols

treeland_wallpaper_color_v1 ↗

wallpaper color monitoring

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_wallpaper_color_v1
treeland_wallpaper_color_manager_v1

Version 1
Compositor Support
Version 1
treeland 0.8.0
treeland_wallpaper_color_manager_v1
request watch(
    output: string,
)
  • output — system output name

watch wallpaper color

Monitor the wallpaper color of a given screen.

treeland_wallpaper_color_manager_v1
request unwatch(
    output: string,
)
  • output — system output name

unwatch wallpaper color

Stop monitor the wallpaper color for the given screen.

treeland_wallpaper_color_manager_v1
request destroy()
Destructor

    destroy the context object

    The client no longer cares about wallpaper_color.

    treeland_wallpaper_color_manager_v1
    event output_color(
        output: string,
        isdark: uint,
    )
    • output — system output name

    output color changed

    Tell the client that the wallpaper color of the screen it is monitoring has changed. This event will also be sent immediately when the client requests a watch.