From 1340e17f9fc15862282c095798e7b4471ebf9cda Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Tue, 15 Sep 2026 20:02:58 +0200 Subject: Allowed matching against description --- dwl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 364171b..133e6ed 100644 --- a/dwl.c +++ b/dwl.c @@ -1336,7 +1336,8 @@ createmon(struct wl_listener *listener, void *data) /* Initialize monitor state using configured rules */ m->tagset[0] = m->tagset[1] = 1; for (r = monrules; r < END(monrules); r++) { - if (!r->name || strstr(wlr_output->name, r->name)) { + if (!r->name || strstr(wlr_output->name, r->name) || ((wlr_output->description != NULL) && strstr(wlr_output->description,r->name))) { + printf("Model %s\n",wlr_output->model); m->m.x = r->x; m->m.y = r->y; m->mfact = r->mfact; -- cgit