diff options
author | joshua <joshua@joshuayun.com> | 2023-12-23 16:38:46 -0500 |
---|---|---|
committer | joshua <joshua@joshuayun.com> | 2023-12-23 16:38:46 -0500 |
commit | c35fb342aab4fef5174f56d0df634990a4b74ae8 (patch) | |
tree | b4c46d5f91acf879c85ec65216ef31095d51a1ae /config.def.h | |
parent | 5821fed4cfe0ae6753c1abe1981f2df0acbc09f7 (diff) | |
download | dwm-c35fb342aab4fef5174f56d0df634990a4b74ae8.tar.gz |
Got systray to play nicely with status bar
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 5e00946..a46ca8e 100644 --- a/config.def.h +++ b/config.def.h @@ -107,6 +107,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 }; @@ -198,7 +200,9 @@ static const Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, { 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} }, |