From 91c1f449565f3e15398472102293d44fa26364d9 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 21 Jan 2019 02:13:01 -0500 Subject: input_cmd_events: allow toggle modes to be listed This extends `input events toggle` to allow for an optional list of modes to toggle through. If no event modes are listed, all supported modes are cycled through (current behavior). If event modes are listed, they will be cycled through, defaulting to the first mode listed when the current mode is not in the list. This modes listed will also not be checked to see if the device supports them and may fail. --- sway/sway-input.5.scd | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sway/sway-input.5.scd') diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd index c2673f2a..872fe8e2 100644 --- a/sway/sway-input.5.scd +++ b/sway/sway-input.5.scd @@ -82,12 +82,16 @@ The following commands may only be used in the configuration file. *input* dwt enabled|disabled Enables or disables disable-while-typing for the specified input device. -*input* events enabled|disabled|disabled\_on\_external\_mouse|toggle +*input* events enabled|disabled|disabled\_on\_external\_mouse|toggle [] Enables or disables send\_events for specified input device. Disabling - send\_events disables the input device. The _toggle_ option cannot be used - in the config. The order is enabled, disabled\_on\_external\_mouse, - disabled, (loop back to enabled). Any mode which is not supported by the - device will be skipped during the toggle. + send\_events disables the input device. + + The _toggle_ option cannot be used in the config. If no toggle modes are + listed, all supported modes for the device will be toggled through in the + order: enabled, disabled\_on\_external\_mouse, disabled, (loop back). If + toggle modes are listed, they will be cycled through, defaulting to the + first mode listed if the current mode is not in the list. They will also + not be checked to see if they are supported for the device and may fail. *input* left\_handed enabled|disabled Enables or disables left handed mode for specified input device. -- cgit v1.2.3-54-g00ecf