From 5b30391383be7e31ae1b213f2a6095bd7a95defc Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 18 Apr 2018 23:19:23 +1000 Subject: 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 } --- include/sway/commands.h | 2 ++ include/sway/config.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include/sway') diff --git a/include/sway/commands.h b/include/sway/commands.h index dbebaa49..7b8c949b 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -196,6 +196,8 @@ sway_cmd input_cmd_map_to_output; sway_cmd input_cmd_middle_emulation; sway_cmd input_cmd_natural_scroll; sway_cmd input_cmd_pointer_accel; +sway_cmd input_cmd_repeat_delay; +sway_cmd input_cmd_repeat_rate; sway_cmd input_cmd_scroll_method; sway_cmd input_cmd_tap; sway_cmd input_cmd_xkb_layout; diff --git a/include/sway/config.h b/include/sway/config.h index ed49fbbd..085f7b92 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -65,6 +65,8 @@ struct input_config { int middle_emulation; int natural_scroll; float pointer_accel; + int repeat_delay; + int repeat_rate; int scroll_method; int send_events; int tap; -- cgit v1.2.3