diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-06-01 19:19:11 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-06-01 19:19:11 +0200 |
commit | 0157794ac1ccb29431b99ea928bd11d4c4be8481 (patch) | |
tree | 09acf8cb4bba9c896af8e25c114a03359d2e1746 /config.h | |
parent | ad9b2fcac0fae348ba4bd7857beb1c495cce72c0 (diff) | |
download | dwm-0157794ac1ccb29431b99ea928bd11d4c4be8481.tar.gz dwm-0157794ac1ccb29431b99ea928bd11d4c4be8481.tar.bz2 dwm-0157794ac1ccb29431b99ea928bd11d4c4be8481.zip |
update
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -61,6 +61,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", selbgcolor, "-sf", selfgcolor, NULL }; @@ -129,7 +131,9 @@ static const 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, Button3, resizemouse, {0} }, |