commit: 31d915640b3e4bd5770a54ff378663dc735a7da4
parent: 0e4d1bec5ae8b1a85db3078dd7c102df5809cda1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 1 Jul 2019 09:14:54 +0200
Allow configuration of bindings
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/config.h b/config.h
@@ -1 +1,3 @@
-#define INABAN_BINDING_MOD WLR_MODIFIER_ALT-
\ No newline at end of file
+#define INABAN_BINDING_MOD WLR_MODIFIER_ALT
+#define INABAN_MODBIND_SWITCH XKB_KEY_ht
+#define INABAN_MODBIND_TERMINATE XKB_KEY_Escape
diff --git a/inaban.c b/inaban.c
@@ -87,8 +87,8 @@ handle_keybinding(struct inaban_server *server, xkb_keysym_t sym)
*/
switch(sym)
{
- case XKB_KEY_Escape: wl_display_terminate(server->wl_display); break;
- case XKB_KEY_ht:
+ case INABAN_MODBIND_TERMINATE: wl_display_terminate(server->wl_display); break;
+ case INABAN_MODBIND_SWITCH:
/* Cycle to the next view */
if(wl_list_length(&server->views) < 2)
{