From 45859be03f14fa0506ab8518feaec5ddb157e318 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sat, 13 Jun 2020 12:32:24 +0900 Subject: i3-compat: add GET_BINDING_STATE IPC command --- sway/sway-ipc.7.scd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'sway/sway-ipc.7.scd') 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*++ -- cgit v1.2.3