diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-06 17:01:45 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-08 03:03:55 +0100 |
commit | 6392abe35b32c66c642c25a7c6911021862d3413 (patch) | |
tree | 0949eee2d8dd8833478adc8f145f4e840f267359 /include | |
parent | Add function for duplication a sway_binding (diff) | |
download | sway-6392abe35b32c66c642c25a7c6911021862d3413.tar.gz sway-6392abe35b32c66c642c25a7c6911021862d3413.tar.zst sway-6392abe35b32c66c642c25a7c6911021862d3413.zip |
Implement IPC binding event (keyboard)
This implements the IPC binding event for keyboard bindings. It is
slightly different from the i3 implementation [1] since sway supports
more than one non-modifier key in a binding. Thus the json interface has
been changed from:
{
...
"symbol": "t",
...
}
to:
{
...
"symbols": [ "t" ],
...
}
[1] http://i3wm.org/docs/ipc.html#_binding_event
Diffstat (limited to 'include')
-rw-r--r-- | include/ipc-server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ipc-server.h b/include/ipc-server.h index 47026bfd..96b7902f 100644 --- a/include/ipc-server.h +++ b/include/ipc-server.h | |||
@@ -21,6 +21,10 @@ void ipc_event_mode(const char *mode); | |||
21 | * the name of that modifier. | 21 | * the name of that modifier. |
22 | */ | 22 | */ |
23 | void ipc_event_modifier(uint32_t modifier, const char *state); | 23 | void ipc_event_modifier(uint32_t modifier, const char *state); |
24 | /** | ||
25 | * Send IPC keyboard binding event. | ||
26 | */ | ||
27 | void ipc_event_binding_keyboard(struct sway_binding *sb); | ||
24 | const char *swayc_type_string(enum swayc_types type); | 28 | const char *swayc_type_string(enum swayc_types type); |
25 | 29 | ||
26 | #endif | 30 | #endif |