watch(output: string)
Argument
Type
Description
outputstring
system output name
watch wallpaper color

Monitor the wallpaper color of a given screen.

unwatch(output: string)
Argument
Type
Description
outputstring
system output name
unwatch wallpaper color

Stop monitor the wallpaper color for the given screen.

destroy()
destroy the context object

The client no longer cares about wallpaper_color.

output_color(output: string, isdark: uint)
Argument
Type
Description
outputstring
system output name
isdarkuint
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.


Compositor Support

treeland_wallpaper_color_manager_v1
Compositors
CageCage0.3.0
x
COSMICCOSMIC1.0.0~beta.8
x
GameScopeGameScope3.15.14
x
HyprlandHyprland0.52.1
x
Jay1.14.0
x
KWinKWin6.6
x
LabwcLabwc0.20.2
x
LouvreLouvre2.14.1
x
MirMir2.26
x
MuffinMuffin6.7.4
x
MutterMutter50.4
x
niriniri26.04
x
phocphoc0.55
x
riverriver0.3.13
x
SwaySway1.11
x
TreelandTreeland0.8.0
1
WayfireWayfire0.9.0
x
WestonWeston14.0.2
x

SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT