diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 13:52:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 13:52:04 +0000 |
| commit | c87cec8c1ec338f4c28c3e76ed7576f237e65214 (patch) | |
| tree | b59a4faf0a916d12dbdc2b40d583198ef79a23dc | |
| parent | input: bind key bindings to raw key codes too (diff) | |
conf: bindings: case insensitive matching against 'none'
| -rw-r--r-- | config.c | 2 | ||||
| -rw-r--r-- | doc/foot.5.scd | 8 | ||||
| -rw-r--r-- | footrc | 6 |
3 files changed, 8 insertions, 8 deletions
@@ -507,7 +507,7 @@ parse_section_key_bindings( if (strcmp(key, binding_action_map[action]) != 0) continue; - if (strcmp(value, "NONE") == 0) { + if (strcasecmp(value, "none") == 0) { free(conf->bindings.key[action]); conf->bindings.key[action] = NULL; return true; diff --git a/doc/foot.5.scd b/doc/foot.5.scd index 2bfd68e2..96036ce3 100644 --- a/doc/foot.5.scd +++ b/doc/foot.5.scd @@ -165,8 +165,8 @@ Note that *Alt* is usually called *Mod1*. A key combination can only be mapped to *one* action. Lets say you want to bind *Control+Shift+R* to *fullscreen*. Since this is the default shortcut for *search-start*, you first need to unmap the -default binding. This can be done by setting _action=NONE_; -e.g. *search-start=NONE*. +default binding. This can be done by setting _action=none_; +e.g. *search-start=none*. *scrollback-up* Scrolls up/back in history. Default: _Shift+Page\_Up_. @@ -223,8 +223,8 @@ find the event names using *libinput debug-events*. A button can only be mapped to *one* action. Lets say you want to bind *BTN\_MIDDLE* to *fullscreen*. Since *BTN\_MIDDLE* is the default binding for *primary-paste*, you first need to unmap the default -binding. This can be done by setting _action=NONE_; -e.g. *primary-paste=NONE*. +binding. This can be done by setting _action=none_; +e.g. *primary-paste=none*. All actions listed under *key-bindings* can be user here as well. @@ -53,9 +53,9 @@ # font-decrease=Control+minus Control+KP_Subtract # font-reset=Control+0 Control+KP_0 # spawn-terminal=Control+Shift+N -# # minimize=<not bound> -# # maximize=<not bound> -# # fullscreen=<not bound> +# minimize=none +# maximize=none +# fullscreen=none [mouse-bindings] # primary-paste=BTN_MIDDLE |
