diff options
author | Benjamin Cheng <ben@bcheng.me> | 2019-03-25 22:05:49 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-04-14 19:31:36 -0400 |
commit | bd3720585e91ae0dfcc4be30149ae4f8f5218174 (patch) | |
tree | 3a44b51a2c5a78bfbde227180c3853875a2258a4 /sway/sway-input.5.scd | |
parent | Add heuristics to differentiate touchpads (diff) | |
download | sway-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.scd | 17 |
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 | |||
9 | Sway allows for configuration of devices within the sway configuration file. | 9 | Sway allows for configuration of devices within the sway configuration file. |
10 | To obtain a list of available device identifiers, run *swaymsg -t get_inputs*. | 10 | To obtain a list of available device identifiers, run *swaymsg -t get_inputs*. |
11 | Settings can also be applied to all input devices by using the wildcard, _\*_, | 11 | Settings can also be applied to all input devices by using the wildcard, _\*_, |
12 | in place of _\<identifier\>_ in the commands below. | 12 | in place of _\<identifier\>_ in the commands below. In addition, the settings |
13 | can be applied to a type of device, by using _type:\<input_type\>_ in place | ||
14 | of _\<identifier\>_. | ||
13 | 15 | ||
14 | Tip: If the configuration settings do not appear to be taking effect, you could | 16 | Tip: If the configuration settings do not appear to be taking effect, you could |
15 | try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try | 17 | try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try |
16 | using a different identifier from *swaymsg -t get_inputs* until you find the | 18 | using a different identifier from *swaymsg -t get_inputs* until you find the |
17 | correct input device. | 19 | correct input device. |
18 | 20 | ||
21 | Current available input types are: | ||
22 | |||
23 | - touchpad | ||
24 | - pointer | ||
25 | - keyboard | ||
26 | - touch | ||
27 | - tablet_tool | ||
28 | - tablet_pad | ||
29 | - switch | ||
30 | |||
31 | Note: The type configurations are applied as the devices appear and get applied | ||
32 | on top of the existing device configurations. | ||
33 | |||
19 | # INPUT COMMANDS | 34 | # INPUT COMMANDS |
20 | 35 | ||
21 | ## KEYBOARD CONFIGURATION | 36 | ## KEYBOARD CONFIGURATION |