aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 066fd8db..70b81ad1 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -1261,3 +1261,10 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
1261#endif 1261#endif
1262 return json; 1262 return json;
1263} 1263}
1264
1265json_object *ipc_json_get_binding_mode(void) {
1266 json_object *current_mode = json_object_new_object();
1267 json_object_object_add(current_mode, "name",
1268 json_object_new_string(config->current_mode->name));
1269 return current_mode;
1270}