summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-25 00:42:33 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-25 00:42:33 +0900
commitacb725cbac68a9905202962fbc144b67507cfa8c (patch)
treeecc989282969320433a885b605d524fea98922b2
parent6581ff6e849738847aaa2f023453afbf78b91240 (diff)
modified dwm/README
-rw-r--r--dwm/README30
1 files 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();
+ ...