mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
parent
29820ff826
commit
0913eff915
@ -132,6 +132,14 @@ static bool handle_input_created(struct libinput_device *device) {
|
|||||||
for (i = 0; i < config->input_configs->length; ++i) {
|
for (i = 0; i < config->input_configs->length; ++i) {
|
||||||
struct input_config *cur = config->input_configs->items[i];
|
struct input_config *cur = config->input_configs->items[i];
|
||||||
if (strcasecmp(identifier, cur->identifier) == 0) {
|
if (strcasecmp(identifier, cur->identifier) == 0) {
|
||||||
|
sway_log(L_DEBUG, "Matched input config for %s",
|
||||||
|
identifier);
|
||||||
|
ic = cur;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (strcasecmp("*", cur->identifier) == 0) {
|
||||||
|
sway_log(L_DEBUG, "Matched wildcard input config for %s",
|
||||||
|
identifier);
|
||||||
ic = cur;
|
ic = cur;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -269,6 +269,8 @@ The default colors are:
|
|||||||
Append _{_ to this command, the following lines will be commands to configure
|
Append _{_ to this command, the following lines will be commands to configure
|
||||||
the named input device, and _}_ on its own line will close the block.
|
the named input device, and _}_ on its own line will close the block.
|
||||||
+
|
+
|
||||||
|
**input * <block of commands>** may be used to match all input devices.
|
||||||
|
+
|
||||||
See **sway-input**(5) for details.
|
See **sway-input**(5) for details.
|
||||||
|
|
||||||
**kill**::
|
**kill**::
|
||||||
|
Loading…
Reference in New Issue
Block a user