diff options
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; |