diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-18 23:19:23 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-18 23:19:23 +1000 |
commit | 5b30391383be7e31ae1b213f2a6095bd7a95defc (patch) | |
tree | 96ad3f77bf2538401d5538e0e0ba9c12c99f32b6 /sway/commands.c | |
parent | Merge pull request #1819 from emersion/destroy-display (diff) | |
download | sway-5b30391383be7e31ae1b213f2a6095bd7a95defc.tar.gz sway-5b30391383be7e31ae1b213f2a6095bd7a95defc.tar.zst sway-5b30391383be7e31ae1b213f2a6095bd7a95defc.zip |
Make key repeat configurable
This creates two input commands for configuring the repeat delay and rate.
Example config:
input "myidentifier" {
repeat_delay 250
repeat_rate 25
}
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 99f42524..fb3eaa75 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -191,6 +191,8 @@ static struct cmd_handler input_handlers[] = { | |||
191 | { "middle_emulation", input_cmd_middle_emulation }, | 191 | { "middle_emulation", input_cmd_middle_emulation }, |
192 | { "natural_scroll", input_cmd_natural_scroll }, | 192 | { "natural_scroll", input_cmd_natural_scroll }, |
193 | { "pointer_accel", input_cmd_pointer_accel }, | 193 | { "pointer_accel", input_cmd_pointer_accel }, |
194 | { "repeat_delay", input_cmd_repeat_delay }, | ||
195 | { "repeat_rate", input_cmd_repeat_rate }, | ||
194 | { "scroll_method", input_cmd_scroll_method }, | 196 | { "scroll_method", input_cmd_scroll_method }, |
195 | { "tap", input_cmd_tap }, | 197 | { "tap", input_cmd_tap }, |
196 | { "xkb_layout", input_cmd_xkb_layout }, | 198 | { "xkb_layout", input_cmd_xkb_layout }, |