mirror of
https://github.com/swaywm/sway.git
synced 2026-03-02 01:40:50 -05:00
i3-compat: add GET_BINDING_STATE IPC command
This commit is contained in:
parent
f9361ae36c
commit
45859be03f
10 changed files with 48 additions and 0 deletions
|
|
@ -440,6 +440,8 @@ int main(int argc, char **argv) {
|
|||
type = IPC_GET_VERSION;
|
||||
} else if (strcasecmp(cmdtype, "get_binding_modes") == 0) {
|
||||
type = IPC_GET_BINDING_MODES;
|
||||
} else if (strcasecmp(cmdtype, "get_binding_state") == 0) {
|
||||
type = IPC_GET_BINDING_STATE;
|
||||
} else if (strcasecmp(cmdtype, "get_config") == 0) {
|
||||
type = IPC_GET_CONFIG;
|
||||
} else if (strcasecmp(cmdtype, "send_tick") == 0) {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,9 @@ _swaymsg_ [options...] [message]
|
|||
*get\_binding\_modes*
|
||||
Gets a JSON-encoded list of currently configured binding modes.
|
||||
|
||||
*get\_binding\_state*
|
||||
Gets JSON-encoded info about the current binding state.
|
||||
|
||||
*get\_config*
|
||||
Gets a JSON-encoded copy of the current configuration.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue