diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-17 07:34:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-17 07:34:51 +0000 |
| commit | ac42ce43032fc2bbabc2c1b132942d3933fe9f49 (patch) | |
| tree | 3013a8a2d262d86a15c54b53ff48d6de9fb0499f /config.h | |
| parent | wayland: don't assume data-device globals are added before seats (diff) | |
| parent | Merge branch 'master' into pipe-grid-to-external-tool (diff) | |
Merge branch 'pipe-grid-to-external-tool'
Closes https://codeberg.org/dnkl/foot/issues/29
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 { |
