diff options
| author | Mouad Alami <moadalami40@gmail.com> | 2023-04-24 22:12:48 +0100 |
|---|---|---|
| committer | Mouad Alami <moadalami40@gmail.com> | 2023-04-24 22:12:48 +0100 |
| commit | c6085d002979ebb1d932e1af5bcd3499cceb3651 (patch) | |
| tree | 4e16115f3fb4c6e5f8f68cd6fa94a8cd77a3fc77 /config.h | |
| parent | 6a95c3ac6bc9b5db2aab7f937c986907f3121233 (diff) | |
statuscmd patch
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -71,6 +71,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", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; @@ -150,7 +152,11 @@ 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} }, + { ClkStatusText, 0, Button4, sigstatusbar, {.i = 4} }, + { ClkStatusText, 0, Button5, sigstatusbar, {.i = 5} }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, |
