aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-18 23:19:23 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-18 23:19:23 +1000
commit5b30391383be7e31ae1b213f2a6095bd7a95defc (patch)
tree96ad3f77bf2538401d5538e0e0ba9c12c99f32b6 /include
parentMerge pull request #1819 from emersion/destroy-display (diff)
downloadsway-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 'include')
-rw-r--r--include/sway/commands.h2
-rw-r--r--include/sway/config.h2
2 files changed, 4 insertions, 0 deletions
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;
196sway_cmd input_cmd_middle_emulation; 196sway_cmd input_cmd_middle_emulation;
197sway_cmd input_cmd_natural_scroll; 197sway_cmd input_cmd_natural_scroll;
198sway_cmd input_cmd_pointer_accel; 198sway_cmd input_cmd_pointer_accel;
199sway_cmd input_cmd_repeat_delay;
200sway_cmd input_cmd_repeat_rate;
199sway_cmd input_cmd_scroll_method; 201sway_cmd input_cmd_scroll_method;
200sway_cmd input_cmd_tap; 202sway_cmd input_cmd_tap;
201sway_cmd input_cmd_xkb_layout; 203sway_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 {
65 int middle_emulation; 65 int middle_emulation;
66 int natural_scroll; 66 int natural_scroll;
67 float pointer_accel; 67 float pointer_accel;
68 int repeat_delay;
69 int repeat_rate;
68 int scroll_method; 70 int scroll_method;
69 int send_events; 71 int send_events;
70 int tap; 72 int tap;