aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/config.h b/config.h
index caf269b5..2b43b806 100644
--- a/config.h
+++ b/config.h
@@ -6,6 +6,7 @@
#include <tllist.h>
#include "terminal.h"
+#include "wayland.h"
struct config_font {
char *pattern;
@@ -13,6 +14,17 @@ struct config_font {
int px_size;
};
+struct config_key_binding_normal {
+ enum bind_action_normal action;
+ char *key;
+ char *pipe_cmd;
+};
+
+struct config_key_binding_search {
+ enum bind_action_search action;
+ char *key;
+};
+
struct config {
char *term;
char *shell;
@@ -48,8 +60,8 @@ struct config {
struct {
/* Bindings for "normal" mode */
- char *key[BIND_ACTION_COUNT];
- struct mouse_binding mouse[BIND_ACTION_COUNT];
+ tll(struct config_key_binding_normal) key;
+ tll(struct mouse_binding) mouse;
/*
* Special modes
@@ -57,7 +69,7 @@ struct config {
/* While searching (not - action to *start* a search is in the
* 'key' bindings above */
- char *search[BIND_ACTION_SEARCH_COUNT];
+ tll(struct config_key_binding_search) search;
} bindings;
struct {