aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-input.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-21 02:13:01 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-21 02:13:01 -0500
commit91c1f449565f3e15398472102293d44fa26364d9 (patch)
treea3adbc2e3e016d60372748d5cbf9c5bf2aed0f51 /sway/sway-input.5.scd
parentAllocate minimum size necessary in pango text functions. (#3473) (diff)
downloadsway-91c1f449565f3e15398472102293d44fa26364d9.tar.gz
sway-91c1f449565f3e15398472102293d44fa26364d9.tar.zst
sway-91c1f449565f3e15398472102293d44fa26364d9.zip
input_cmd_events: allow toggle modes to be listed
This extends `input <identifier> 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.
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r--sway/sway-input.5.scd14
1 files changed, 9 insertions, 5 deletions
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.
82*input* <identifier> dwt enabled|disabled 82*input* <identifier> dwt enabled|disabled
83 Enables or disables disable-while-typing for the specified input device. 83 Enables or disables disable-while-typing for the specified input device.
84 84
85*input* <identifier> events enabled|disabled|disabled\_on\_external\_mouse|toggle 85*input* <identifier> events enabled|disabled|disabled\_on\_external\_mouse|toggle [<toggle-modes>]
86 Enables or disables send\_events for specified input device. Disabling 86 Enables or disables send\_events for specified input device. Disabling
87 send\_events disables the input device. The _toggle_ option cannot be used 87 send\_events disables the input device.
88 in the config. The order is enabled, disabled\_on\_external\_mouse, 88
89 disabled, (loop back to enabled). Any mode which is not supported by the 89 The _toggle_ option cannot be used in the config. If no toggle modes are
90 device will be skipped during the toggle. 90 listed, all supported modes for the device will be toggled through in the
91 order: enabled, disabled\_on\_external\_mouse, disabled, (loop back). If
92 toggle modes are listed, they will be cycled through, defaulting to the
93 first mode listed if the current mode is not in the list. They will also
94 not be checked to see if they are supported for the device and may fail.
91 95
92*input* <identifier> left\_handed enabled|disabled 96*input* <identifier> left\_handed enabled|disabled
93 Enables or disables left handed mode for specified input device. 97 Enables or disables left handed mode for specified input device.