Add keybind.c

This commit is contained in:
Johan Malm 2020-06-16 07:21:53 +01:00
parent 5bd55570ba
commit 40f01ed3c9
10 changed files with 114 additions and 11 deletions

View file

@ -3,16 +3,32 @@
#include <stdio.h>
#include <stdbool.h>
#include <wlr/types/wlr_keyboard.h>
#include <wayland-server-core.h>
#include <xkbcommon/xkbcommon.h>
#include "buf.h"
struct keybind {
uint32_t modifiers;
xkb_keysym_t *keysyms;
size_t keysyms_len;
char *action;
struct wl_list link;
};
void keybind_add(struct wl_list *keybinds, const char *keybind, const char *action);
void keybind_init();
void keybind_print();
struct rcxml {
bool client_side_decorations;
struct wl_list keybinds;
};
extern struct rcxml rc;
void rcxml_init(struct rcxml *rc);
void rcxml_init();
void rcxml_parse_xml(struct buf *b);
void rcxml_read(const char *filename);
void rcxml_get_nodenames(struct buf *b);