暴露哪个是主显示器

用于告知在已启用的输出中哪个是主显示器的协议。

set_primary_output(output: string)
参数
类型
描述
outputstring允许为空
选择要使用的主输出
get_color_control(id: new_id<treeland_output_color_control_v1>, output: object<wl_output>)
参数
类型
描述
idnew_id<treeland_output_color_control_v1>
outputobject<wl_output>
获取输出的颜色控制接口
destroy
类型: destructor起始版本 2
destroy()
销毁主输出通知器
primary_output(output_name: string)
参数
类型
描述
output_namestring
the name of the output
提供当前主输出的名称

指定哪个输出是通过名称标识的主输出。


输出的颜色控制接口

用于控制特定输出的色温和亮度设置的协议。

set_color_temperature(temperature: uint)
参数
类型
描述
temperatureuint
color temperature in Kelvin
设置输出的色温

色温设置仅在发出 commit 请求后应用。设置超出 [1000, 20000] 范围的值是协议错误。

set_brightness(brightness: fixed)
参数
类型
描述
brightnessfixed
brightness level (in range [0.0, 100.0])
设置输出的亮度

亮度设置仅在发出 commit 请求后应用。设置超出 [0.0, 100.0] 范围的值是协议错误。

commit()
提交输出的待处理颜色设置更改
destroy()
销毁颜色控制接口
result(success: uint)
参数
类型
描述
successuint
1 if the commit was successful, 0 otherwise.
上次 commit 请求的结果
color_temperature(temperature: uint)
参数
类型
描述
temperatureuint
current color temperature in Kelvin
输出的当前色温

提供输出的当前色温设置。色温取值范围为 [1000, 20000]。色温定义为显示器当前白点在普朗克轨迹上对应的温度(开尔文)。在当前实现中,中性色温为 6600K。此事件在 treeland_output_color_control_v1 对象创建后发送一次,或在输出的色温更改成功提交后立即发送。

brightness(brightness: fixed)
参数
类型
描述
brightnessfixed
current brightness level (in range [0.0, 100.0])
输出的当前亮度

提供输出的当前亮度设置。亮度取值范围为 [0.0, 100.0]。此事件在 treeland_output_color_control_v1 对象创建后发送一次,或在输出的亮度更改成功提交后立即发送。


合成器支持

Cage
Cage
0.2.0
COSMIC
COSMIC
1.0.0~beta.8
GameScope
GameScope
3.15.14
Hyprland
Hyprland
0.52.1
Jay
1.12.0
KWin
KWin
6.6
Labwc
Labwc
0.9.2
Louvre
Louvre
2.14.1
Mir
Mir
2.26
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_output_manager_v1
x
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

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。