Treeland output manager v1

manage output display configuration

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_output_manager_v1

Deprecatedversion 2
primary output and color control manager

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

set_primary_output(output: string)
Argument
Type
Description
outputstringallow null
the name of the output to set as primary
Select which primary output to use

Select the primary output by name. The compositor will emit a primary_output event with the current primary output name upon binding.

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.


per-output color temperature and brightness control

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 committed.

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 committed.

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

Compositor Support

treeland_output_manager_v1↓
Compositors
CageCage0.3.0
x
COSMICCOSMIC1.11.0
x
flakewm3.0.5
x
GameScopeGameScope3.17.0
x
HyprlandHyprland0.57.2
x
Jay1.14.0
x
KWinKWin6.7
x
LabwcLabwc0.20.2
x
LouvreLouvre2.14.1
x
MangoMango0.16.3
x
MirMir2.26
x
MuffinMuffin6.7.4
x
MutterMutter51
x
niriniri26.04
x
phocphoc0.55
x
Pila0.5.1
x
QtileQtile0.37.1
x
riverriver0.5.0
x
SwaySway1.11
x
TreelandTreeland0.8.0
2
WayfireWayfire0.9.0
x
WestonWeston15.0.1
x

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