From acb725cbac68a9905202962fbc144b67507cfa8c Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 25 Jun 2025 00:42:33 +0900 Subject: modified dwm/README --- dwm/README | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/dwm/README b/dwm/README index a16c408..df404e1 100644 --- a/dwm/README +++ b/dwm/README @@ -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(); + ... -- cgit v1.2.3