Treeland shortcut manager
treeland_shortcut_manager_v1
This interface allows a client to get some shell's info.
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.
register_shortcut_context(key: string, id: new_id<treeland_shortcut_context_v1>)
Argument | Type | Description |
---|---|---|
key | string | |
id | new_id<treeland_shortcut_context_v1> |
The format of the shortcut key is 'Modify+Key', such as 'Ctrl+Alt+T'. If the format is wrong, the synthesizer will give a "format error". If the shortcut key is already registered, the compositor will give a "register error" and issue a destruction to the context.
treeland_shortcut_context_v1
This interface allows a client to listen a shortcut action.
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.
destroy()
Destroy the context object.
shortcut()
error { register_failed }
Argument | Value | Description |
---|---|---|
register_failed | 1 | shortcut register failed |
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_shortcut_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