diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-06-01 12:20:06 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-06-01 12:20:06 +0200 |
commit | 14714a10c7e1e1af136e7760b4bfec93ae2b2b2f (patch) | |
tree | f86cfdaa2e3b04b7f14d5fc1ab211dc3816e4bb7 /config.h | |
parent | 319ad6e84b96fc7317f98542705bf05ccf5de026 (diff) | |
download | dwm-14714a10c7e1e1af136e7760b4bfec93ae2b2b2f.tar.gz dwm-14714a10c7e1e1af136e7760b4bfec93ae2b2b2f.tar.bz2 dwm-14714a10c7e1e1af136e7760b4bfec93ae2b2b2f.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} }, |