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
Cage | COSMIC | GameScope | Hyprland | Jay | KWin | Labwc | Louvre | Mir | Muffin | Mutter | niri | river | Sway | Treeland | Wayfire | Weston | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| treeland_output_manager_v1 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | 2 | x | x |
Copyright
SPDX-FileCopyrightText: 2024-2025 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT