Treeland personalization manager
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_personalization_manager_v1
This interface allows a client to customize display effects.
get_window_context(id: new_id<treeland_personalization_window_context_v1>, surface: object<wl_surface>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_personalization_window_context_v1> | |
| surface | object<wl_surface> |
set window background, shadow based on context
get_cursor_context(id: new_id<treeland_personalization_cursor_context_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_personalization_cursor_context_v1> |
Create a cursor customization context for configuring the system cursor.
get_font_context(id: new_id<treeland_personalization_font_context_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_personalization_font_context_v1> |
custom treeland and window global font context
get_appearance_context(id: new_id<treeland_personalization_appearance_context_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_personalization_appearance_context_v1> |
custom user treeland window appearance global
destroy()
treeland_personalization_cursor_context_v1
This interface allows a client personalization cursor.
set_theme(name: string)
Argument | Type | Description |
|---|---|---|
| name | string | cursor theme name |
Set the system cursor theme name.
get_theme()
Query the current system cursor theme name. The compositor will respond with a theme event.
set_size(size: uint)
Argument | Type | Description |
|---|---|---|
| size | uint | cursor size |
Set the system cursor size.
get_size()
Query the current system cursor size. The compositor will respond with a size event.
commit()
Apply pending cursor configuration changes.
destroy()
Destroy the context object.
verfity(success: int)
Argument | Type | Description |
|---|---|---|
| success | int | check whether the configuration is successful |
Send this signal after commit cursor configure.
theme(name: string)
Argument | Type | Description |
|---|---|---|
| name | string | cursor theme name |
Sent when the system cursor theme has changed.
treeland_personalization_window_context_v1
This interface allows a client to customize per-window visual properties including background blend mode, round corner radius, shadow, border, and titlebar visibility.
set_blend_mode(mode: int<treeland_personalization_window_context_v1.blend_mode>)
Argument | Type | Description |
|---|---|---|
| mode | int<treeland_personalization_window_context_v1.blend_mode> | the blend mode to apply |
Set window background blend mode
set_round_corner_radius(radius: int)
Argument | Type | Description |
|---|---|---|
| radius | int | window round corner radius in pixels |
This request will set window round corner radius, invoking this request means user want to manage window round corner radius by itself. If not invoked, window round corner radius will be decided by compositor.
Argument | Type | Description |
|---|---|---|
| radius | int | shadow radius, -1 for system default, 0 to disable |
| offset_x | int | shadow x offset |
| offset_y | int | shadow y offset |
| r | int | shadow color red component (0-255) |
| g | int | shadow color green component (0-255) |
| b | int | shadow color blue component (0-255) |
| a | int | shadow color alpha component (0-255) |
Set window shadow's radius, offset and color. When enabled, the client manages the window shadow itself.
Argument | Type | Description |
|---|---|---|
| width | int | border width in pixels, -1 for system default, 0 to disable |
| r | int | border color red component (0-255) |
| g | int | border color green component (0-255) |
| b | int | border color blue component (0-255) |
| a | int | border color alpha component (0-255) |
Set window border width and color. When enabled, the client manages the window border itself.
set_titlebar(mode: int<treeland_personalization_window_context_v1.enable_mode>)
Argument | Type | Description |
|---|---|---|
| mode | int<treeland_personalization_window_context_v1.enable_mode> | the titlebar enable mode |
Set system titlebar state.
destroy()
Destroy the context object.
blend_mode { transparent, wallpaper, blur }
Argument | Value | Description |
|---|---|---|
| transparent | 0 | Normal blend mode, just composite over background with alpha channel |
| wallpaper | 1 | Composite window over wallpaper |
| blur | 2 | Blur the content of the window background |
Window blend mode defines how compositor composite window's surface over other surfaces.
Set window enable mode
treeland_personalization_font_context_v1
This interface allows a client to configure global font settings including the general font, monospace font, and font size.
set_font_size(size: uint)
Argument | Type | Description |
|---|---|---|
| size | uint | font size |
Set the system font size
get_font_size()
Get the system font size
set_font(font_name: string)
Argument | Type | Description |
|---|---|---|
| font_name | string | font name |
Set the system font
set_monospace_font(font_name: string)
Argument | Type | Description |
|---|---|---|
| font_name | string | monospace font name |
Set the system monospace font
get_monospace_font()
Get the system monospace font
destroy()
Destroy the context object.
font(font_name: string)
Argument | Type | Description |
|---|---|---|
| font_name | string | font name |
Send this signal after setting the system font.
monospace_font(font_name: string)
Argument | Type | Description |
|---|---|---|
| font_name | string | monospace font name |
Send this signal after setting the system monospace font.
treeland_personalization_appearance_context_v1
This interface allows a client to configure global appearance settings including round corner radius, icon theme, active color, window opacity, window theme type, and window titlebar height.
set_round_corner_radius(radius: int)
Argument | Type | Description |
|---|---|---|
| radius | int |
Set window round corner radius
get_round_corner_radius()
Get window round corner radius
set_icon_theme(theme: string)
Argument | Type | Description |
|---|---|---|
| theme | string | icon theme |
Set the system icon theme
get_icon_theme()
Get the system icon theme
set_active_color(color: string)
Argument | Type | Description |
|---|---|---|
| color | string | rgb |
Set the system active color
get_active_color()
Get the system active color
set_window_opacity(opacity: uint)
Argument | Type | Description |
|---|---|---|
| opacity | uint | opacity |
Set the window opacity.
get_window_opacity()
Get the current window opacity.
set_window_theme_type(type: uint<treeland_personalization_appearance_context_v1.theme_type>)
Argument | Type | Description |
|---|---|---|
| type | uint<treeland_personalization_appearance_context_v1.theme_type> | window theme type |
Set the window theme.
get_window_theme_type()
Get the window theme type
set_window_titlebar_height(height: uint)
Argument | Type | Description |
|---|---|---|
| height | uint | window titlebar height |
Set the window titlebar height
get_window_titlebar_height()
Get the window titlebar height
destroy()
Destroy the context object.
round_corner_radius(radius: int)
Argument | Type | Description |
|---|---|---|
| radius | int | round corner radius |
Send this signal after setting the round corner radius.
icon_theme(theme_name: string)
Argument | Type | Description |
|---|---|---|
| theme_name | string | icon theme name |
Send this signal after setting the system icon theme.
active_color(active_color: string)
Argument | Type | Description |
|---|---|---|
| active_color | string | active color |
Send this signal after setting the system active color
window_opacity(opacity: uint)
Argument | Type | Description |
|---|---|---|
| opacity | uint | window opacity |
Sent when the window opacity has changed.
window_theme_type(type: uint<treeland_personalization_appearance_context_v1.theme_type>)
Argument | Type | Description |
|---|---|---|
| type | uint<treeland_personalization_appearance_context_v1.theme_type> | window theme type |
Send this signal after setting the system theme
window_titlebar_height(height: uint)
Argument | Type | Description |
|---|---|---|
| height | uint | window titlebar height |
Send this signal after setting the window titlebar height
error { invalid_round_corner_radius, invalid_icon_theme, invalid_active_color, invalid_window_opacity, invalid_window_theme_type, invalid_window_titlebar_height }
Argument | Value | Description |
|---|---|---|
| invalid_round_corner_radius | 0 | Wrong round corner radius |
| invalid_icon_theme | 1 | Wrong icon theme |
| invalid_active_color | 2 | Wrong active color |
| invalid_window_opacity | 4 | Wrong window opacity |
| invalid_window_theme_type | 8 | Wrong theme type |
| invalid_window_titlebar_height | 16 | Wrong window titlebar height |
Compositor Support
| treeland_personalization_manager_v1 | ↓ | ||
| Compositors | |||
| Cage | 0.3.0 | x | |
| COSMIC | 1.11.0 | x | |
| flakewm | 3.0.5 | 2 | |
| GameScope | 3.17.0 | x | |
| Hyprland | 0.57.2 | x | |
| Jay | 1.14.0 | x | |
| KWin | 6.7 | x | |
| Labwc | 0.20.2 | x | |
| Louvre | 2.14.1 | x | |
| Mango | 0.16.3 | x | |
| Mir | 2.26 | x | |
| Muffin | 6.7.4 | x | |
| Mutter | 51 | x | |
| niri | 26.04 | x | |
| phoc | 0.55 | x | |
| Pila | 0.5.1 | x | |
| Qtile | 0.37.1 | x | |
| river | 0.5.0 | x | |
| Sway | 1.11 | x | |
| Treeland | 0.8.0 | 1 | |
| Wayfire | 0.9.0 | x | |
| Weston | 15.0.1 | x | |
Copyright
SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT