From 75eece6dd52aa49705bf59a6f5b6197b7a14f5db Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 7 Jun 2020 15:29:42 -0700 Subject: feat: working dispatch menu --- sys/cmd/dwm/config.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'sys/cmd/dwm/config.h') diff --git a/sys/cmd/dwm/config.h b/sys/cmd/dwm/config.h index 2f58151..a35e4e6 100644 --- a/sys/cmd/dwm/config.h +++ b/sys/cmd/dwm/config.h @@ -8,13 +8,12 @@ static uint snap = 32; /* snap pixel */ static int swallowfloating = 0; /* 1 will swallow floating by default */ static int showbar = 1; /* 0 means no bar */ static int topbar = 1; /* 0 means bottom bar */ -static char *fonts[] = { "consolas:size=14" }; -static char dmenufont[] = "consolas:size=14"; -static char col_gray1[] = "#222222"; +static char *fonts[] = { "consolas:size=12" }; +static char col_gray1[] = "#323232"; static char col_gray2[] = "#444444"; static char col_gray3[] = "#bbbbbb"; static char col_gray4[] = "#eeeeee"; -static char col_cyan[] = "#005577"; +static char col_cyan[] = "#24aed8"; static char *colors[][3] = { /* fg bg border */ @@ -30,10 +29,11 @@ static Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating isterminal noswallow monitor */ - { "Gimp", nil, nil, 1 << 8, 1, 0, 0, -1 }, - { "qutebrowser", nil, nil, 0, 0, 0, 0, -1 }, - { "term", nil, nil, 0, 0, 0, -1, -1 }, + /* class instance title tags mask isfloating isterminal noswallow monitor */ + { "Gimp", nil, nil, 0, 1, 0, 0, -1 }, + { "Inkscape", nil, nil, 0, 1, 0, 0, -1 }, + { "qutebrowser", nil, nil, 0, 0, 0, 0, -1 }, + { "term-256color", nil, nil, 0, 0, 1, -1, -1 }, }; /* layout(s) */ @@ -56,18 +56,16 @@ static Layout layouts[] = { { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (char*[]){ "/bin/sh", "-c", cmd, nil } } - /* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static char *dmenucmd[] = { "menu_dispatch", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, nil }; +static char *menucmd[] = { "menu_run", nil }; static char *termcmd[] = { "term", nil }; +static char *webscmd[] = { "qutebrowser", nil }; static Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_d, spawn, {.v = dmenucmd } }, + { MODKEY, XK_d, spawn, {.v = menucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_q, spawn, {.v = webscmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_f, togglefocus, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, -- cgit v1.2.1