diff options
author | Ingo Bürk <admin@airblader.de> | 2016-06-15 22:25:22 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-06-15 22:25:22 +0200 |
commit | b1d70f25b3f22027959d60e24f57b8f965fdd757 (patch) | |
tree | 20e4ed8a6400f1ed05909ef14470a04b7318697d /i3-msg | |
parent | 63d0823016f6ca2f1eae6903a9896097e9c5d4a5 (diff) | |
download | i3-b1d70f25b3f22027959d60e24f57b8f965fdd757.tar.gz i3-b1d70f25b3f22027959d60e24f57b8f965fdd757.zip |
Introduced a new GET_BINDING_MODES message type and reply. (#2376)
This type dumps all currently configured binding modes.
fixes #2375
Diffstat (limited to 'i3-msg')
-rw-r--r-- | i3-msg/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c index 36691cae..658c33b4 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -161,11 +161,13 @@ int main(int argc, char *argv[]) { message_type = I3_IPC_MESSAGE_TYPE_GET_MARKS; else if (strcasecmp(optarg, "get_bar_config") == 0) message_type = I3_IPC_MESSAGE_TYPE_GET_BAR_CONFIG; + else if (strcasecmp(optarg, "get_binding_modes") == 0) + message_type = I3_IPC_MESSAGE_TYPE_GET_BINDING_MODES; else if (strcasecmp(optarg, "get_version") == 0) message_type = I3_IPC_MESSAGE_TYPE_GET_VERSION; else { printf("Unknown message type\n"); - printf("Known types: command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config, get_version\n"); + printf("Known types: command, get_workspaces, get_outputs, get_tree, get_marks, get_bar_config, get_binding_modes, get_version\n"); exit(EXIT_FAILURE); } } else if (o == 'q') { |