Parse bindings in config, execute bindings

This commit is contained in:
emersion 2017-10-02 16:25:48 +02:00
parent d32018f1ac
commit 97d0fe8976
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 94 additions and 8 deletions

View file

@ -18,6 +18,17 @@ struct device_config {
struct wl_list link;
};
enum binding_config_action {
BINDING_CONFIG_ACTION_QUIT,
};
struct binding_config {
xkb_keysym_t *keysyms;
size_t keysyms_len;
enum binding_config_action action;
struct wl_list link;
};
struct roots_config {
// TODO: Multiple cursors, multiseat
struct {
@ -27,6 +38,7 @@ struct roots_config {
struct wl_list outputs;
struct wl_list devices;
struct wl_list bindings;
char *config_path;
};