aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-09-05 10:15:57 -0400
committerDrew DeVault <sir@cmpwn.com>2016-09-05 10:18:38 -0400
commit0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3 (patch)
tree8485e59a100680aaf0c4040fffc449dd971342ec /sway
parent29820ff826013b595e8c15d9e933767b0c965beb (diff)
Add support for * input configs
Closes #852
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c8
-rw-r--r--sway/sway.5.txt2
2 files changed, 10 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 47af7bd5..26da5407 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -132,6 +132,14 @@ static bool handle_input_created(struct libinput_device *device) {
for (i = 0; i < config->input_configs->length; ++i) {
struct input_config *cur = config->input_configs->items[i];
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;
break;
}
diff --git a/sway/sway.5.txt b/sway/sway.5.txt
index 84e5e7c5..b31edeb7 100644
--- a/sway/sway.5.txt
+++ b/sway/sway.5.txt
@@ -269,6 +269,8 @@ The default colors are:
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.
+
+ **input * <block of commands>** may be used to match all input devices.
+ +
See **sway-input**(5) for details.
**kill**::