summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2021-12-22 16:29:51 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2021-12-22 16:29:51 -0500
commit5784018c18d5af4e8fa1bca7975547fb02dda873 (patch)
tree77a18b1e4b88528977182a8f8a8c41300e21d4be /config.def.h
parent60036de81ef8279033682c6fc117627e96d7b574 (diff)
downloaddwm-5784018c18d5af4e8fa1bca7975547fb02dda873.tar.gz
Applied the statuscmd patch
https://dwm.suckless.org/patches/statuscmd/ This was done in preparation for using Luke's build of dwmblocks, and is needed to support clickable statusbar elements.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 1967e52..631874d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -106,6 +106,8 @@ static const Layout layouts[] = {
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
+#define STATUSBAR "dwmblocks"
+
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL };
@@ -204,7 +206,9 @@ static Button buttons[] = {
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
- { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
+ { ClkStatusText, 0, Button1, sigstatusbar, {.i = 1} },
+ { ClkStatusText, 0, Button2, sigstatusbar, {.i = 2} },
+ { ClkStatusText, 0, Button3, sigstatusbar, {.i = 3} },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button1, resizemouse, {0} },