diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 08:52:01 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 08:52:01 -0500 |
| commit | 00ce50bf43b34ef9a66bc2ba0c64ba3d965ff6ea (patch) | |
| tree | c8dd3e7685bf46f91bbe01ffa220542e881e2773 /dwm.c | |
| parent | 7dcc0ef3969f2bbfbee8846d0bddbd39ce197d93 (diff) | |
| download | dwm-00ce50bf43b34ef9a66bc2ba0c64ba3d965ff6ea.tar.gz dwm-00ce50bf43b34ef9a66bc2ba0c64ba3d965ff6ea.tar.xz | |
Allow regexp matching for window title and class
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -306,8 +306,8 @@ applyrules(Client *c) for (i = 0; i < LENGTH(rules); i++) { r = &rules[i]; - if ((!r->title || strstr(c->name, r->title)) - && (!r->class || strstr(class, r->class)) + if ((!r->title || reMatch(r->title, c->name) == 0) + && (!r->class || reMatch(r->class, class) == 0) && (!r->instance || strstr(instance, r->instance))) { c->isfloating = r->isfloating; |
