From 39c1871b919a7cc361d2cae8154af7a4d7d08c74 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 30 Oct 2020 17:51:30 -0400 Subject: Tweak some of the bindings, also automatically tag some applications. --- config.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index 41e3a5c..9e7e60c 100644 --- a/config.h +++ b/config.h @@ -26,9 +26,12 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Pavucontrol", NULL, NULL, 1<<6, 0, -1 }, + { "Evolution", NULL, NULL, 1<<6, 0, -1 }, + { "Google-chrome", NULL, NULL, 1<<7, 0, -1 }, + { "Firefox", NULL, NULL, 1<<8, 0, -1 }, }; /* layout(s) */ @@ -56,15 +59,23 @@ static const Layout layouts[] = { #include "selfrestart.c" +#define DMENU_FLAGS "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4 + /* 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 }; +static const char *dmenucmd[] = { "dmenu_run", DMENU_FLAGS, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *passcmd[] = { "passmenu", DMENU_FLAGS, NULL }; +static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL }; +static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_p, spawn, {.v = passcmd } }, + { MODKEY, XK_o, spawn, {.v = passcmd_type } }, + { MODKEY|ShiftMask, XK_s, spawn, {.v = snip_cmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -72,7 +83,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_j, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY|ShiftMask, XK_f, zoom, {0} }, + { MODKEY|ShiftMask, XK_f, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, -- cgit v1.2.3