aboutsummaryrefslogtreecommitdiff
path: root/sway/sway-ipc.7.scd
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2020-06-13 12:32:24 +0900
committerBrian Ashworth <bosrsf04@gmail.com>2020-06-14 00:55:14 -0400
commit45859be03f14fa0506ab8518feaec5ddb157e318 (patch)
treee838990235ecf0a4f543999ea292c0c5167957df /sway/sway-ipc.7.scd
parentf9361ae36c586d78db34307f538508ab0dd8f486 (diff)
i3-compat: add GET_BINDING_STATE IPC command
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r--sway/sway-ipc.7.scd20
1 files changed, 20 insertions, 0 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd
index 63e3ceb6..495e2e7d 100644
--- a/sway/sway-ipc.7.scd
+++ b/sway/sway-ipc.7.scd
@@ -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*++