diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-09-15 20:02:58 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-09-15 20:02:58 +0200 | ||
| commit | 1340e17f9fc15862282c095798e7b4471ebf9cda (patch) | |
| tree | ef3cd7b60e1f51bd22717af3cd548cb5508599eb | |
| parent | b9362d380e6c8d031e1c099349e5210ec1f83b16 (diff) | |
| download | dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.tar.gz dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.tar.bz2 dwl-1340e17f9fc15862282c095798e7b4471ebf9cda.zip | |
Allowed matching against description
diff --git a/config.def.h b/config.def.h index 8ceb071..0e7c7e9 100644 --- a/config.def.h +++ b/config.def.h @@ -64,7 +64,7 @@ static const MonitorRule monrules[] = { /* name mfact nmaster scale layout rotate/reflect x y * example of a HiDPI laptop monitor: { "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, */ - { "eDP-1", 0.55f, 1, 1.7f, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, + { "Samsung Display Corp. 0x4193", 0.55f, 1, 1.7f, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, { "DP-3", 0.55f, 1, 1.7f, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, { NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, /* default monitor rule: can be changed but cannot be eliminated; at least one monitor rule must exist */ @@ -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; |