Skip to content

Instantly share code, notes, and snippets.

View mynameisbogdan's full-sized avatar

Bogdan mynameisbogdan

View GitHub Profile
@mynameisbogdan
mynameisbogdan / with nmaster support
Created February 12, 2012 07:45
bstack dwm 6.0.patch
@@ -2128,6 +2187,32 @@ zoom(const Arg *arg) {
pop(c);
}
+void
+bstack(Monitor *m) {
+ unsigned int i, n, w, mh, mx, tx;
+ Client *c;
+
+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
scratchpad.patch for dwm 6.0
A scratchpad is a window that is assigned the (hidden) scratchtag.
A window becomes a scratchpad if its WM_NAME at its creation time is the value
of the scratchpadname variable.
togglescratchpad() is actually a variant of toggleview().
To use this, put the following definitions in config.h:
static const char scratchpadname[] = "Scratchpad"; /* make it unique, avoid name collision */
static const char *scratchpadcmd[] = { "uxterm", "-title", scratchpadname, "-geometry", "80x20", NULL }; /* WM_NAME must be scratchpadname */