aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-06 18:36:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-16 22:02:07 +0000
commit422d94fb46ad18e52f5385e416cd00cb7b4c2fc9 (patch)
tree307b544335964de5ccc0c99843ae97f1218499b5 /wayland.h
parentmain: --server: don’t exit with code 0 on failure (diff)
wip: map key combos to custom text strings (including escapes)
With this, it is now possible to map key combos to custom escapes. The new bindings are defined in a new section, “text-bindings”, on the form “string=key combo”. The string can consist of printable characters, or \xNN style hex digits: [text-bindings] abcd = Control+a \x1b[A = Control+b Control+c Control+d # map ctrl+b/c/d to UP
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland.h b/wayland.h
index 81109673..2d753e70 100644
--- a/wayland.h
+++ b/wayland.h
@@ -54,6 +54,7 @@ enum bind_action_normal {
BIND_ACTION_PIPE_SELECTED,
BIND_ACTION_SHOW_URLS_COPY,
BIND_ACTION_SHOW_URLS_LAUNCH,
+ BIND_ACTION_TEXT_BINDING,
/* Mouse specific actions - i.e. they require a mouse coordinate */
BIND_ACTION_SELECT_BEGIN,
@@ -119,7 +120,6 @@ struct key_binding {
};
const struct binding_aux *aux;
-
};
typedef tll(struct key_binding) key_binding_list_t;