Treeland output manager
treeland_output_manager_v1
Protocol for telling which is the primary display among the selection of enabled outputs.
set_primary_output(output: string)
Argument | Type | Description |
|---|---|---|
| output | stringallow null |
get_color_control(id: new_id<treeland_output_color_control_v1>, output: object<wl_output>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_output_color_control_v1> | |
| output | object<wl_output> |
destroy()
primary_output(output_name: string)
Argument | Type | Description |
|---|---|---|
| output_name | string | the name of the output |
Specifies which output is the primary one identified by their name.
treeland_output_color_control_v1
Protocol for controlling color temperature and brightness settings of a specific output.
set_color_temperature(temperature: uint)
Argument | Type | Description |
|---|---|---|
| temperature | uint | color temperature in Kelvin |
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 |
|---|---|---|
| brightness | fixed | brightness level (in range [0.0, 100.0]) |
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()
destroy()
result(success: uint)
Argument | Type | Description |
|---|---|---|
| success | uint | 1 if the commit was successful, 0 otherwise. |
color_temperature(temperature: uint)
Argument | Type | Description |
|---|---|---|
| temperature | uint | current color temperature in Kelvin |
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 |
|---|---|---|
| brightness | fixed | current brightness level (in range [0.0, 100.0]) |
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.
error { invalid_color_temperature, invalid_brightness }
Argument | Value | Description |
|---|---|---|
| invalid_color_temperature | 1 | Invalid color temperature value provided. |
| invalid_brightness | 2 | Invalid brightness value provided. |
Compositor Support
| treeland_output_manager_v1 | ↓ | ||
| Compositors | |||
| Cage | 0.3.0 | x | |
| COSMIC | 1.0.0~beta.8 | x | |
| GameScope | 3.15.14 | x | |
| Hyprland | 0.52.1 | x | |
| Jay | 1.14.0 | x | |
| KWin | 6.7 | x | |
| Labwc | 0.20.2 | x | |
| Louvre | 2.14.1 | x | |
| Mir | 2.26 | x | |
| Muffin | 6.7.4 | x | |
| Mutter | 51 | x | |
| niri | 26.04 | x | |
| phoc | 0.55 | x | |
| river | 0.3.13 | x | |
| Sway | 1.11 | x | |
| Treeland | 0.8.0 | 2 | |
| Wayfire | 0.9.0 | x | |
| Weston | 15.0.1 | x | |
Copyright
SPDX-FileCopyrightText: 2024-2025 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT