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

Cage
Cage
0.2.0
COSMIC
COSMIC
1.0.0~beta.8
GameScope
GameScope
3.15.14
Hyprland
Hyprland
0.52.1
Jay
1.11.0
KWin
KWin
6.4
Labwc
Labwc
0.9.2
Louvre
Louvre
2.14.1
Mir
Mir
2.19
Muffin
Muffin
6.6.0
Mutter
Mutter
49.2
niri
niri
25.11
phoc
phoc
0.52
river
river
0.3.13
Sway
Sway
1.11
Treeland
Treeland
0.8.0
Wayfire
Wayfire
0.9.0
Weston
Weston
14.0.2
treeland_wallpaper_color_manager_v1
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
1
x
x

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