Treeland personalization manager

personalization and theming for treeland

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.

personalization manager

This interface allows a client to customize display effects.

get_window_context(id: new_id<treeland_personalization_window_context_v1>, surface: object<wl_surface>)
get personalization window context

set window background, shadow based on context

get_cursor_context(id: new_id<treeland_personalization_cursor_context_v1>)
Argument
Type
Description
idnew_id<treeland_personalization_cursor_context_v1>
create a cursor customization context

Create a cursor customization context for configuring the system cursor.

get_font_context(id: new_id<treeland_personalization_font_context_v1>)
Argument
Type
Description
idnew_id<treeland_personalization_font_context_v1>
custom treeland and window global font context

custom treeland and window global font context

get_appearance_context(id: new_id<treeland_personalization_appearance_context_v1>)
custom treeland window global settings context

custom user treeland window appearance global

destroy()
destroy treeland_personalization_manager_v1 object

client custom cursor context

This interface allows a client personalization cursor.

set_theme(name: string)
Argument
Type
Description
namestring
cursor theme name
set system cursor theme

Set the system cursor theme name.

get_theme()
get system cursor theme

Query the current system cursor theme name. The compositor will respond with a theme event.

set_size(size: uint)
Argument
Type
Description
sizeuint
cursor size
set system cursor size

Set the system cursor size.

get_size()
get system cursor size

Query the current system cursor size. The compositor will respond with a size event.

commit()
commit pending cursor configuration

Apply pending cursor configuration changes.

destroy()
destroy the context object

Destroy the context object.

verfity(success: int)
Argument
Type
Description
successint
check whether the configuration is successful
verfity event

Send this signal after commit cursor configure.

theme(name: string)
Argument
Type
Description
namestring
cursor theme name
cursor theme changed event

Sent when the system cursor theme has changed.

size(size: uint)
Argument
Type
Description
sizeuint
cursor size
cursor size changed event

Sent when the system cursor size has changed.


per-window personalization context

This interface allows a client to customize per-window visual properties including background blend mode, round corner radius, shadow, border, and titlebar visibility.

Argument
Type
Description
modeint<treeland_personalization_window_context_v1.blend_mode>
the blend mode to apply
set window background blend mode

Set window background blend mode

set_round_corner_radius(radius: int)
Argument
Type
Description
radiusint
window round corner radius in pixels
set window round corner radius

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_shadow(radius: int, offset_x: int, offset_y: int, r: int, g: int, b: int, a: int)
Argument
Type
Description
radiusint
shadow radius, -1 for system default, 0 to disable
offset_xint
shadow x offset
offset_yint
shadow y offset
rint
shadow color red component (0-255)
gint
shadow color green component (0-255)
bint
shadow color blue component (0-255)
aint
shadow color alpha component (0-255)
set window shadow

Set window shadow's radius, offset and color. When enabled, the client manages the window shadow itself.

set_border(width: int, r: int, g: int, b: int, a: int)
Argument
Type
Description
widthint
border width in pixels, -1 for system default, 0 to disable
rint
border color red component (0-255)
gint
border color green component (0-255)
bint
border color blue component (0-255)
aint
border color alpha component (0-255)
set window border

Set window border width and color. When enabled, the client manages the window border itself.

Argument
Type
Description
modeint<treeland_personalization_window_context_v1.enable_mode>
the titlebar enable mode
set if system titlebar is enabled

Set system titlebar state.

destroy()
destroy the context object

Destroy the context object.

blend_mode { transparent, wallpaper, blur } 
Argument
Value
Description
transparent0
Normal blend mode, just composite over background with alpha channel
wallpaper1
Composite window over wallpaper
blur2
Blur the content of the window background
window blend mode

Window blend mode defines how compositor composite window's surface over other surfaces.

enable_mode { enable, disable } 
Argument
Value
Description
enable0
force enable titlebar
disable1
force disable titlebar
window enable mode

Set window enable mode


global font settings context

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
sizeuint
font size
set system font size

Set the system font size

get_font_size()
get system font size

Get the system font size

set_font(font_name: string)
Argument
Type
Description
font_namestring
font name
set system font

Set the system font

get_font()
get system font

Get the system font

set_monospace_font(font_name: string)
Argument
Type
Description
font_namestring
monospace font name
set system monospace font

Set the system monospace font

get_monospace_font()
get system monospace font

Get the system monospace font

destroy()
destroy the context object

Destroy the context object.

font(font_name: string)
Argument
Type
Description
font_namestring
font name
font event

Send this signal after setting the system font.

monospace_font(font_name: string)
Argument
Type
Description
font_namestring
monospace font name
monospace font event

Send this signal after setting the system monospace font.

font_size(font_size: uint)
Argument
Type
Description
font_sizeuint
font size
font size

Send this signal after setting the system font size.


global appearance settings context

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
radiusint
set window round corner radius

Set window round corner radius

get_round_corner_radius()
get window round corner radius

Get window round corner radius

set_icon_theme(theme: string)
Argument
Type
Description
themestring
icon theme
set system icon theme

Set the system icon theme

get_icon_theme()
get system icon theme

Get the system icon theme

set_active_color(color: string)
Argument
Type
Description
colorstring
rgb
set system active color

Set the system active color

get_active_color()
get system active color

Get the system active color

set_window_opacity(opacity: uint)
Argument
Type
Description
opacityuint
opacity
set window opacity

Set the window opacity.

get_window_opacity()
get window opacity

Get the current window opacity.

get_window_theme_type()
get window theme type

Get the window theme type

set_window_titlebar_height(height: uint)
Argument
Type
Description
heightuint
window titlebar height
set window titlebar height

Set the window titlebar height

get_window_titlebar_height()
get window titlebar height

Get the window titlebar height

destroy()
destroy the context object

Destroy the context object.

round_corner_radius(radius: int)
Argument
Type
Description
radiusint
round corner radius
round corner radius event

Send this signal after setting the round corner radius.

icon_theme(theme_name: string)
Argument
Type
Description
theme_namestring
icon theme name
icon theme event

Send this signal after setting the system icon theme.

active_color(active_color: string)
Argument
Type
Description
active_colorstring
active color
active color

Send this signal after setting the system active color

window_opacity(opacity: uint)
Argument
Type
Description
opacityuint
window opacity
window opacity

Sent when the window opacity has changed.

Argument
Type
Description
typeuint<treeland_personalization_appearance_context_v1.theme_type>
window theme type
window theme

Send this signal after setting the system theme

window_titlebar_height(height: uint)
Argument
Type
Description
heightuint
window titlebar height
window titlebar height

Send this signal after setting the window titlebar height

theme_type { auto, light, dark } 
Argument
Value
Description
auto1
window auto theme
light2
window light theme
dark4
window dark theme
window theme type

Compositor Support

treeland_personalization_manager_v1↓
Compositors
CageCage0.3.0
x
COSMICCOSMIC1.11.0
x
flakewm3.0.5
2
GameScopeGameScope3.17.0
x
HyprlandHyprland0.57.2
x
Jay1.14.0
x
KWinKWin6.7
x
LabwcLabwc0.20.2
x
LouvreLouvre2.14.1
x
MangoMango0.16.3
x
MirMir2.26
x
MuffinMuffin6.7.4
x
MutterMutter51
x
niriniri26.04
x
phocphoc0.55
x
Pila0.5.1
x
QtileQtile0.37.1
x
riverriver0.5.0
x
SwaySway1.11
x
TreelandTreeland0.8.0
1
WayfireWayfire0.9.0
x
WestonWeston15.0.1
x

SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT