Add song switching keybinding

This commit is contained in:
Nise Void 2019-02-18 11:25:56 +01:00
parent 4b7d03e4ac
commit 3785b84844
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3

View File

@ -32,6 +32,7 @@ static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */ /* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 1 << 5, 0, -1 }, { "Gimp", NULL, NULL, 1 << 5, 0, -1 },
{ "Firefox", NULL, NULL, 1 << 2, 0, -1 }, { "Firefox", NULL, NULL, 1 << 2, 0, -1 },
{ "tablify", NULL, NULL, ~0, 1, -1 },
}; };
/* layout(s) */ /* layout(s) */
@ -62,6 +63,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_red, "-sf", col_gray4, NULL }; static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_red, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL }; static const char *termcmd[] = { "st", NULL };
static const char *songcmd[] = { "song", NULL };
static const char *browser1cmd[] = { "firefox", NULL }; static const char *browser1cmd[] = { "firefox", NULL };
static const char *browser2cmd[] = { "chromium", "--incognito", NULL }; static const char *browser2cmd[] = { "chromium", "--incognito", NULL };
@ -76,6 +79,7 @@ static Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY, XK_space, spawn, {.v = dmenucmd } }, { MODKEY, XK_space, spawn, {.v = dmenucmd } },
{ MODKEY, XK_t, spawn, {.v = termcmd } }, { MODKEY, XK_t, spawn, {.v = termcmd } },
{ MODKEY, XK_grave, spawn, {.v = songcmd } },
{ MODKEY, XK_b, spawn, {.v = browser1cmd} }, { MODKEY, XK_b, spawn, {.v = browser1cmd} },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = browser2cmd} }, { MODKEY|ShiftMask, XK_b, spawn, {.v = browser2cmd} },
{ Mod1Mask, XK_Tab, focusstack, {.i = +1 } }, { Mod1Mask, XK_Tab, focusstack, {.i = +1 } },