diff options
Diffstat (limited to 'public/code/dwm')
| -rw-r--r-- | public/code/dwm/config.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/public/code/dwm/config.h b/public/code/dwm/config.h index 895fced..bfb050f 100644 --- a/public/code/dwm/config.h +++ b/public/code/dwm/config.h @@ -32,8 +32,9 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + //{ "firefox", NULL, NULL, 1 << 8, 0, -1 }, { "GoldenDict", NULL, NULL, 0, 1, -1 }, + { "st", NULL, NULL, 0, 1, -1 }, }; /* layout(s) */ @@ -61,13 +62,13 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +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 }; static const char *termcmd[] = { "st", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_space, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, @@ -102,6 +103,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_q, quit, {0} }, // mitsuo + { MODKEY, XK_space, spawn, {.v = dmenucmd } }, { MODKEY, XK_F4, killclient, {0} }, }; |
