summaryrefslogtreecommitdiff
path: root/sway/commands/input.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-04-18 23:19:23 +1000
committerRyan Dwyer <[email protected]>2018-04-18 23:19:23 +1000
commit5b30391383be7e31ae1b213f2a6095bd7a95defc (patch)
tree96ad3f77bf2538401d5538e0e0ba9c12c99f32b6 /sway/commands/input.c
parentd668d5789238f1e2865599cf1b7ffeb518ee8318 (diff)
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/input.c')
-rw-r--r--sway/commands/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c
index fa9cf05a..eeb4ee75 100644
--- a/sway/commands/input.c
+++ b/sway/commands/input.c
@@ -55,6 +55,10 @@ struct cmd_results *cmd_input(int argc, char **argv) {
res = input_cmd_natural_scroll(argc_new, argv_new);
} else if (strcasecmp("pointer_accel", argv[1]) == 0) {
res = input_cmd_pointer_accel(argc_new, argv_new);
+ } else if (strcasecmp("repeat_delay", argv[1]) == 0) {
+ res = input_cmd_repeat_delay(argc_new, argv_new);
+ } else if (strcasecmp("repeat_rate", argv[1]) == 0) {
+ res = input_cmd_repeat_rate(argc_new, argv_new);
} else if (strcasecmp("scroll_method", argv[1]) == 0) {
res = input_cmd_scroll_method(argc_new, argv_new);
} else if (strcasecmp("tap", argv[1]) == 0) {