Treeland personalization manager
treeland_personalization_manager_v1
This interface allows a client to customized display effects.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
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_wallpaper_context(id: new_id<treeland_personalization_wallpaper_context_v1>)
Argument | Type | Description |
---|---|---|
id | new_id<treeland_personalization_wallpaper_context_v1> |
custom user wallpaper
get_cursor_context(id: new_id<treeland_personalization_cursor_context_v1>)
Argument | Type | Description |
---|---|---|
id | new_id<treeland_personalization_cursor_context_v1> |
custom user 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
This interface allows a client personalization wallpaper.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
set_identifier(identifier: string)
Argument | Type | Description |
---|---|---|
identifier | string | Identifier for the application window |
set_output(output: string)
Argument | Type | Description |
---|---|---|
output | string | system output name |
set_on(options: uint<treeland_personalization_wallpaper_context_v1.options>)
Argument | Type | Description |
---|---|---|
options | uint<treeland_personalization_wallpaper_context_v1.options> | xdg desktop portal options |
set_isdark(isdark: uint)
Argument | Type | Description |
---|---|---|
isdark | uint | is dark |
get_metadata()
get the current user's wallpaper
destroy()
Destroy the context object.
metadata(metadata: string)
Argument | Type | Description |
---|---|---|
metadata | string | user meta data |
Send this signal after getting the user's wallpaper.
options { preview, background, lockscreen }
Argument | Value | Description |
---|---|---|
preview | 1 | whether to show a preview of the picture |
background | 2 | configure screen background |
lockscreen | 4 | configure screen wallpaper |
This interface allows a client personalization cursor.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
commit()
if only one commit fails validation, the commit will fail
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 |
Send this signal after system cursor theme changed.
This interface allows a client personalization window.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
set_blend_mode(mode: int<treeland_personalization_window_context_v1.window_blend_mode>)
Argument | Type | Description |
---|---|---|
mode | int<treeland_personalization_window_context_v1.window_blend_mode> |
Set window background blend mode
set_round_corner_radius(radius: int)
Argument | Type | Description |
---|---|---|
radius | int |
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.
Set window shadow's radius, offset and color, invoking this request indicates that client want to manage the window shadow by itself. If not invoked, window shadow will be decided by the compositor
Set window border width and color
set_titlebar(mode: int<treeland_personalization_window_context_v1.enable_mode>)
Argument | Type | Description |
---|---|---|
mode | int<treeland_personalization_window_context_v1.enable_mode> |
Set if system titlebar is enabled
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
This interface allows set treeland window global font settings.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
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.
This interface allows set treeland window global appearance settings.
Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
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 window opacity
get_window_opacity()
Get the window 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 |
Send this signal after setting the system active color
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
Mutter 47.3 | KWin 6.3 | Sway 1.10 | COSMIC 0.1 | Hyprland 0.44 | niri 25.01 | Weston 14 | Mir 2.19 | GameScope 3.15.14 | Jay 1.9.0 | Labwc 0.8.2 | Wayfire 0.9.0 | Treeland 0.5.17 | Louvre 2.14.1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
treeland_personalization_manager_v1 | x | x | x | x | x | x | x | x | x | x | x | x | 1 | x |
Copyright
SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT