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 --- swaymsg/main.c | 2 ++ swaymsg/swaymsg.1.scd | 3 +++ 2 files changed, 5 insertions(+) (limited to 'swaymsg') 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) { type = IPC_GET_VERSION; } else if (strcasecmp(cmdtype, "get_binding_modes") == 0) { type = IPC_GET_BINDING_MODES; + } else if (strcasecmp(cmdtype, "get_binding_state") == 0) { + type = IPC_GET_BINDING_STATE; } else if (strcasecmp(cmdtype, "get_config") == 0) { type = IPC_GET_CONFIG; } 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] *get\_binding\_modes* Gets a JSON-encoded list of currently configured binding modes. +*get\_binding\_state* + Gets JSON-encoded info about the current binding state. + *get\_config* Gets a JSON-encoded copy of the current configuration. -- cgit v1.2.3