labwc/include/config/keybind.h

23 lines
436 B
C
Raw Normal View History

2020-08-03 20:56:38 +01:00
#ifndef __LABWC_KEYBIND_H
#define __LABWC_KEYBIND_H
#include <wlr/types/wlr_keyboard.h>
#include <xkbcommon/xkbcommon.h>
struct keybind {
uint32_t modifiers;
xkb_keysym_t *keysyms;
size_t keysyms_len;
char *action;
char *command;
struct wl_list link;
};
2020-08-07 20:21:14 +01:00
/**
* keybind_add - parse keybind and add to linked list
* @keybind: key combination
*/
2020-08-03 20:56:38 +01:00
struct keybind *keybind_add(const char *keybind);
#endif /* __LABWC_KEYBIND_H */