expose which is the primary display

Protocol for telling which is the primary display among the selection of enabled outputs.

set_primary_output(output: string)
Argument
Type
Description
outputstringallow null
Select which primary output to use
get_color_control(id: new_id<treeland_output_color_control_v1>, output: object<wl_output>)
Argument
Type
Description
idnew_id<treeland_output_color_control_v1>
outputobject<wl_output>
Get color control interface for output.
destroy()
Destroy the primary output notifier.
primary_output(output_name: string)
Argument
Type
Description
output_namestring
the name of the output
Provide the current primary output's name

Specifies which output is the primary one identified by their name.


Color control interface for output.

Protocol for controlling color temperature and brightness settings of a specific output.

set_color_temperature(temperature: uint)
Argument
Type
Description
temperatureuint
color temperature in Kelvin
Set color temperature for output

Color temperature settings are applied only after a commit request is made. Setting a value outside the range [1000, 20000] is a protocol error.

set_brightness(brightness: fixed)
Argument
Type
Description
brightnessfixed
brightness level (in range [0.0, 100.0])
Set brightness for output.

Brightness settings are applied only after a commit request is made. Setting a value outside the range [0.0, 100.0] is a protocol error.

commit()
Commit the pending color settings changes for output.
destroy()
Destroy the color control interface.
result(success: uint)
Argument
Type
Description
successuint
1 if the commit was successful, 0 otherwise.
The result of the last commit request.
color_temperature(temperature: uint)
Argument
Type
Description
temperatureuint
current color temperature in Kelvin
Current color temperature for output.

Provides the current color temperature setting of the output. Color temperature is valued in the range [1000, 20000]. Color temperature is defined as the corresponding temperature (in Kelvin) of the current white point of the display on a Planckian locus. With the current implementation, the neutral temperature is 6600K. This event is sent once after the treeland_output_color_control_v1 object is created, or right after when a color temperature change for the output is successfully commited.

brightness(brightness: fixed)
Argument
Type
Description
brightnessfixed
current brightness level (in range [0.0, 100.0])
Current brightness for output.

Provides the current brightness setting of the output. Brightness is valued in the range [0.0, 100.0]. This event is sent once after the treeland_output_color_control_v1 object is created, or right after when a brightness change for the output is successfully commited.

Argument
Value
Description
invalid_color_temperature1
Invalid color temperature value provided.
invalid_brightness2
Invalid brightness value provided.

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.4.1
Mutter
Mutter
49.2
niri
niri
25.11
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_output_manager_v1
x
x
x
x
x
x
x
x
x
x
x
x
x
x
2
x
x

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