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 /swaymsg | |
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 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 2 | ||||
-rw-r--r-- | swaymsg/swaymsg.1.scd | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index f9d3515a..38976f9c 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c | |||
@@ -440,6 +440,8 @@ int main(int argc, char **argv) { | |||
440 | type = IPC_GET_VERSION; | 440 | type = IPC_GET_VERSION; |
441 | } else if (strcasecmp(cmdtype, "get_binding_modes") == 0) { | 441 | } else if (strcasecmp(cmdtype, "get_binding_modes") == 0) { |
442 | type = IPC_GET_BINDING_MODES; | 442 | type = IPC_GET_BINDING_MODES; |
443 | } else if (strcasecmp(cmdtype, "get_binding_state") == 0) { | ||
444 | type = IPC_GET_BINDING_STATE; | ||
443 | } else if (strcasecmp(cmdtype, "get_config") == 0) { | 445 | } else if (strcasecmp(cmdtype, "get_config") == 0) { |
444 | type = IPC_GET_CONFIG; | 446 | type = IPC_GET_CONFIG; |
445 | } else if (strcasecmp(cmdtype, "send_tick") == 0) { | 447 | } else if (strcasecmp(cmdtype, "send_tick") == 0) { |
diff --git a/swaymsg/swaymsg.1.scd b/swaymsg/swaymsg.1.scd index 515d745f..b8a38b54 100644 --- a/swaymsg/swaymsg.1.scd +++ b/swaymsg/swaymsg.1.scd | |||
@@ -80,6 +80,9 @@ _swaymsg_ [options...] [message] | |||
80 | *get\_binding\_modes* | 80 | *get\_binding\_modes* |
81 | Gets a JSON-encoded list of currently configured binding modes. | 81 | Gets a JSON-encoded list of currently configured binding modes. |
82 | 82 | ||
83 | *get\_binding\_state* | ||
84 | Gets JSON-encoded info about the current binding state. | ||
85 | |||
83 | *get\_config* | 86 | *get\_config* |
84 | Gets a JSON-encoded copy of the current configuration. | 87 | Gets a JSON-encoded copy of the current configuration. |
85 | 88 | ||