aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-05-03 11:39:48 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-05-03 11:39:48 -0500
commitb19afa10f363b3e9dff9966eeccb396cd4285738 (patch)
tree4592608dd4d62a1add91fa336fe49fcf720e4a14
parent7afe152c47de22ba974b85ef2bfa76490bb33a54 (diff)
use strstr for monrules
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 06e60aa..392b9d4 100644
--- a/dwl.c
+++ b/dwl.c
@@ -414,7 +414,7 @@ createmon(struct wl_listener *listener, void *data)
m->wlr_output = wlr_output;
m->tagset[0] = m->tagset[1] = 1;
for (r = monrules; r < END(monrules); r++) {
- if (!r->name || !strcmp(wlr_output->name, r->name)) {
+ if (!r->name || strstr(wlr_output->name, r->name)) {
m->mfact = r->mfact;
m->nmaster = r->nmaster;
wlr_output_set_scale(wlr_output, r->scale);