From 2bdf9e20a5816d12697fc5770eab10351dca609c Mon Sep 17 00:00:00 2001 From: Keith Hubbard Date: Sun, 15 Aug 2021 08:49:11 -0400 Subject: command: support repeating keyboard mappings Repeating mappings are created using the -repeat option to the map command: % riverctl map normal $mod+Mod1 K -repeat move up 10 - repeating is only supported for key press (not -release) mappings - unlike -release, -repeat does not create distinct mappings: mapping a key with -repeat will replace an existing bare mapping and vice-versa Resolves #306 --- doc/riverctl.1.scd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/riverctl.1.scd b/doc/riverctl.1.scd index a589c45..d1d4666 100644 --- a/doc/riverctl.1.scd +++ b/doc/riverctl.1.scd @@ -185,11 +185,13 @@ A complete list may be found in _/usr/include/linux/input-event-codes.h_ *enter-mode* _name_ Switch to given mode if it exists. -*map* [_-release_] _mode_ _modifiers_ _key_ _command_ +*map* [_-release_|_-repeat_] _mode_ _modifiers_ _key_ _command_ Run _command_ when _key_ is pressed while _modifiers_ are held down and in the specified _mode_. - _-release_: if passed activate on key release instead of key press + - _-repeat_: if passed activate repeatedly until key release; may not + be used with -release - _mode_: name of the mode for which to create the mapping - _modifiers_: one or more of the modifiers listed above, separated by a plus sign (+). -- cgit v1.2.3