diff options
author | Dennis Schridde <devurandom@gmx.net> | 2020-03-14 14:43:52 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-03-15 18:05:14 -0400 |
commit | 6498542b24d9699f0b0428ba5ac3e9a8b30b7feb (patch) | |
tree | 14fd4770119b33f6c945efc07b03e3782dd1743b | |
parent | sway/input/cursor.c: move NULL check to where it should be (diff) | |
download | sway-6498542b24d9699f0b0428ba5ac3e9a8b30b7feb.tar.gz sway-6498542b24d9699f0b0428ba5ac3e9a8b30b7feb.tar.zst sway-6498542b24d9699f0b0428ba5ac3e9a8b30b7feb.zip |
Document input selector precedence
Signed-off-by: Dennis Schridde <devurandom@gmx.net>
-rw-r--r-- | sway/sway-input.5.scd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd index c0584241..3c61c27b 100644 --- a/sway/sway-input.5.scd +++ b/sway/sway-input.5.scd | |||
@@ -13,6 +13,14 @@ 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 | 13 | can be applied to a type of device, by using _type:\<input_type\>_ in place |
14 | of _\<identifier\>_. | 14 | of _\<identifier\>_. |
15 | 15 | ||
16 | In the configuration file, settings with a more specific selector take | ||
17 | precedence over more general ones: _\<identifier\>_ \> _type:\<input_type\>_ \> | ||
18 | _\*_. When executing input commands, however, the settings are applied to all | ||
19 | matching input devices! This means that _type:\<input_type\>_ can override | ||
20 | previously set _\<identifier\>_ settings, even though in a configuration file | ||
21 | they would take precedence. Similarly _\*_ can override both _\<identifier\>_ | ||
22 | and _type:\<input_type\>_ settings, if applied later. | ||
23 | |||
16 | Tip: If the configuration settings do not appear to be taking effect, you could | 24 | Tip: If the configuration settings do not appear to be taking effect, you could |
17 | try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try | 25 | try using _\*_ instead of _\<identifier\>_. If it works with the wildcard, try |
18 | using a different identifier from *swaymsg -t get_inputs* until you find the | 26 | using a different identifier from *swaymsg -t get_inputs* until you find the |