From 544c1b1976544085a2f27497c5c516bf1d9edfa3 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 9 Aug 2020 22:40:53 +0200 Subject: config: wip: add support for modifiers in mouse bindings Mouse bindings can now include modifiers. They are specified in pretty much the same way as in keyboard bindings: Control+BTN_LEFT --- config.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 7963aee7..e8a06483 100644 --- a/config.h +++ b/config.h @@ -17,16 +17,21 @@ struct config_font { struct config_key_binding_normal { enum bind_action_normal action; - char *key; + char *combos; struct { char *cmd; char **argv; } pipe; }; +struct config_mouse_binding { + enum bind_action_normal action; + char *combos; +}; + struct config_key_binding_search { enum bind_action_search action; - char *key; + char *combos; }; struct config { @@ -91,7 +96,7 @@ struct config { struct { /* Bindings for "normal" mode */ tll(struct config_key_binding_normal) key; - tll(struct mouse_binding) mouse; + tll(struct config_mouse_binding) mouse; /* * Special modes -- cgit v1.3