summaryrefslogtreecommitdiff
path: root/dwm/README
diff options
context:
space:
mode:
Diffstat (limited to '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();
+ ...