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

Mutter
Mutter
47.3
KWin
KWin
6.3
Sway
Sway
1.10
COSMIC
COSMIC
0.1
Hyprland
Hyprland
0.44
niri
25.01
Weston
Weston
14
Mir
Mir
2.19
GameScope
GameScope
3.15.14
Jay
1.9.0
Labwc
Labwc
0.8.2
Wayfire
0.9.0
Treeland
Treeland
0.5.17
Louvre
Louvre
2.14.1
treeland_wallpaper_color_manager_v1
x
x
x
x
x
x
x
x
x
x
x
x
1
x

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