diff options
| -rw-r--r-- | dwm/README | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -47,9 +47,35 @@ Configuration The configuration of dwm is done by creating a custom config.def.h and (re)compiling the source code. -In applyrules function, the comparing method for class, name, and title -is changed from strstr to strcmp: +In dwm.c, applyrules function is modified. The comparing method for +class, name, and title is changed from strstr to strcmp: if ((!r->title || strcmp(c->name, r->title) == 0) && (!r->class || strcmp(class, r->class) == 0) && (!r->instance || strcmp(instance,r->instance) == 0)) + +For the status bar, this dwm uses dwmblocks. It executes dwmblocks via +a custom function in dwm.c: + + ... + static void runAutostart(void); + ... + + void + runAutostart(void) + { + system("kill $(pidof dwmblocks); killall -q dwmblocks; dwmblocks &"); + } + + int + main(int argc, char *argv[]) + { + if (argc == 2 && !strcmp("-v", argv[1])) + ... + #ifdef __OpenBSD__ + if (pledge("stdio rpath proc exec ps", NULL) == -1) + die("pledge"); + #endif /* __OpenBSD__ */ + scan(); + runAutostart(); + ... |
