mirror of
https://github.com/swaywm/sway.git
synced 2024-11-20 06:59:14 +00:00
6392abe35b
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
31 lines
854 B
C
31 lines
854 B
C
#ifndef _SWAY_IPC_SERVER_H
|
|
#define _SWAY_IPC_SERVER_H
|
|
|
|
#include "container.h"
|
|
#include "config.h"
|
|
#include "ipc.h"
|
|
|
|
void ipc_init(void);
|
|
void ipc_terminate(void);
|
|
struct sockaddr_un *ipc_user_sockaddr(void);
|
|
|
|
void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change);
|
|
void ipc_event_barconfig_update(struct bar_config *bar);
|
|
/**
|
|
* Send IPC mode event to all listening clients
|
|
*/
|
|
void ipc_event_mode(const char *mode);
|
|
/**
|
|
* Sends an IPC modifier event to all listening clients. The modifier event
|
|
* includes a key 'change' with the value of state and a key 'modifier' with
|
|
* the name of that modifier.
|
|
*/
|
|
void ipc_event_modifier(uint32_t modifier, const char *state);
|
|
/**
|
|
* Send IPC keyboard binding event.
|
|
*/
|
|
void ipc_event_binding_keyboard(struct sway_binding *sb);
|
|
const char *swayc_type_string(enum swayc_types type);
|
|
|
|
#endif
|