mirror of
https://github.com/swaywm/sway.git
synced 2025-11-21 06:59:48 -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
|
|
@ -75,6 +75,9 @@ supported. *For all replies, any properties not listed are subject to removal.*
|
|||
|- 11
|
||||
: SYNC
|
||||
: Replies failure object for i3 compatibility
|
||||
|- 12
|
||||
: GET_BINDING_STATE
|
||||
: Request the current binding state, e.g. the currently active binding mode name.
|
||||
|- 100
|
||||
: GET_INPUTS
|
||||
: Get the list of input devices
|
||||
|
|
@ -1067,6 +1070,23 @@ boolean value _false_.
|
|||
}
|
||||
```
|
||||
|
||||
## 12. GET_BINDING_STATE
|
||||
|
||||
*MESSAGE*++
|
||||
Returns the currently active binding mode.
|
||||
|
||||
*REPLY*++
|
||||
A single object that contains the property _name_, which is set to the
|
||||
currently active binding mode as a string.
|
||||
|
||||
*Exact Reply:*
|
||||
```
|
||||
{
|
||||
"name": "default"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## 100. GET_INPUTS
|
||||
|
||||
*MESSAGE*++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue