From 6498542b24d9699f0b0428ba5ac3e9a8b30b7feb Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Sat, 14 Mar 2020 14:43:52 +0100 Subject: Document input selector precedence Signed-off-by: Dennis Schridde --- sway/sway-input.5.scd | 8 ++++++++ 1 file changed, 8 insertions(+) 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 _\_ in the commands below. In addition, the settings can be applied to a type of device, by using _type:\_ in place of _\_. +In the configuration file, settings with a more specific selector take +precedence over more general ones: _\_ \> _type:\_ \> +_\*_. When executing input commands, however, the settings are applied to all +matching input devices! This means that _type:\_ can override +previously set _\_ settings, even though in a configuration file +they would take precedence. Similarly _\*_ can override both _\_ +and _type:\_ settings, if applied later. + Tip: If the configuration settings do not appear to be taking effect, you could try using _\*_ instead of _\_. If it works with the wildcard, try using a different identifier from *swaymsg -t get_inputs* until you find the -- cgit v1.2.3-54-g00ecf