mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
i3-compat: add GET_BINDING_STATE IPC command
This commit is contained in:
parent
f9361ae36c
commit
45859be03f
10 changed files with 48 additions and 0 deletions
|
|
@ -1261,3 +1261,10 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
|
|||
#endif
|
||||
return json;
|
||||
}
|
||||
|
||||
json_object *ipc_json_get_binding_mode(void) {
|
||||
json_object *current_mode = json_object_new_object();
|
||||
json_object_object_add(current_mode, "name",
|
||||
json_object_new_string(config->current_mode->name));
|
||||
return current_mode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue