diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-25 00:42:33 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-25 00:42:33 +0900 |
| commit | acb725cbac68a9905202962fbc144b67507cfa8c (patch) | |
| tree | ecc989282969320433a885b605d524fea98922b2 | |
| parent | 6581ff6e849738847aaa2f023453afbf78b91240 (diff) | |
modified dwm/README
| -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(); + ... |
