aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-input.5.scd
diff options
context:
space:
mode:
authorLibravatar Benjamin Cheng <ben@bcheng.me>2019-03-25 22:05:49 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-04-14 19:31:36 -0400
commitbd3720585e91ae0dfcc4be30149ae4f8f5218174 (patch)
tree3a44b51a2c5a78bfbde227180c3853875a2258a4 /sway/sway-input.5.scd
parentAdd heuristics to differentiate touchpads (diff)
downloadsway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.tar.gz
sway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.tar.zst
sway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.zip
Implement input type configs (#3784)
Add support for configurations that apply to a type of inputs (i.e. natural scrolling on all touchpads). A type config is differentiated by a `type:` prefix followed by the type it corresponds to. When new devices appear, the device config is merged on top of its type config (if it exists). New type configs are applied on top of existing configs.
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r--sway/sway-input.5.scd17
1 files changed, 16 insertions, 1 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd
index 1a8062fb..efd3d1af 100644
--- a/sway/sway-input.5.scd
+++ b/sway/sway-input.5.scd
@@ -9,13 +9,28 @@ sway-input - input configuration file and commands
9Sway allows for configuration of devices within the sway configuration file. 9Sway allows for configuration of devices within the sway configuration file.
10To obtain a list of available device identifiers, run *swaymsg -t get_inputs*. 10To obtain a list of available device identifiers, run *swaymsg -t get_inputs*.
11Settings can also be applied to all input devices by using the wildcard, _\*_, 11Settings can also be applied to all input devices by using the wildcard, _\*_,
12in place of _\<identifier\>_ in the commands below. 12in place of _\<identifier\>_ in the commands below. In addition, the settings
13can be applied to a type of device, by using _type:\<input_type\>_ in place
14of _\<identifier\>_.
13 15
14Tip: If the configuration settings do not appear to be taking effect, you could 16Tip: If the configuration settings do not appear to be taking effect, you could
15try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try 17try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try
16using a different identifier from *swaymsg -t get_inputs* until you find the 18using a different identifier from *swaymsg -t get_inputs* until you find the
17correct input device. 19correct input device.
18 20
21Current available input types are:
22
23- touchpad
24- pointer
25- keyboard
26- touch
27- tablet_tool
28- tablet_pad
29- switch
30
31Note: The type configurations are applied as the devices appear and get applied
32on top of the existing device configurations.
33
19# INPUT COMMANDS 34# INPUT COMMANDS
20 35
21## KEYBOARD CONFIGURATION 36## KEYBOARD CONFIGURATION