diff options
author | Jason Nader <jason.nader@protonmail.com> | 2020-06-13 12:32:24 +0900 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-06-14 00:55:14 -0400 |
commit | 45859be03f14fa0506ab8518feaec5ddb157e318 (patch) | |
tree | e838990235ecf0a4f543999ea292c0c5167957df /sway/sway-ipc.7.scd | |
parent | Remove view child surface_{map,unmap} listeners on destroy (diff) | |
download | sway-45859be03f14fa0506ab8518feaec5ddb157e318.tar.gz sway-45859be03f14fa0506ab8518feaec5ddb157e318.tar.zst sway-45859be03f14fa0506ab8518feaec5ddb157e318.zip |
i3-compat: add GET_BINDING_STATE IPC command
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r-- | sway/sway-ipc.7.scd | 20 |
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.* | |||
75 | |- 11 | 75 | |- 11 |
76 | : SYNC | 76 | : SYNC |
77 | : Replies failure object for i3 compatibility | 77 | : Replies failure object for i3 compatibility |
78 | |- 12 | ||
79 | : GET_BINDING_STATE | ||
80 | : Request the current binding state, e.g. the currently active binding mode name. | ||
78 | |- 100 | 81 | |- 100 |
79 | : GET_INPUTS | 82 | : GET_INPUTS |
80 | : Get the list of input devices | 83 | : Get the list of input devices |
@@ -1067,6 +1070,23 @@ boolean value _false_. | |||
1067 | } | 1070 | } |
1068 | ``` | 1071 | ``` |
1069 | 1072 | ||
1073 | ## 12. GET_BINDING_STATE | ||
1074 | |||
1075 | *MESSAGE*++ | ||
1076 | Returns the currently active binding mode. | ||
1077 | |||
1078 | *REPLY*++ | ||
1079 | A single object that contains the property _name_, which is set to the | ||
1080 | currently active binding mode as a string. | ||
1081 | |||
1082 | *Exact Reply:* | ||
1083 | ``` | ||
1084 | { | ||
1085 | "name": "default" | ||
1086 | } | ||
1087 | ``` | ||
1088 | |||
1089 | |||
1070 | ## 100. GET_INPUTS | 1090 | ## 100. GET_INPUTS |
1071 | 1091 | ||
1072 | *MESSAGE*++ | 1092 | *MESSAGE*++ |