From a995852585b5f3002168970330e559a321c7946d Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 14 Nov 2021 18:23:20 +0530 Subject: added 14 keybindings for audio control, ncmpcpp, nnn, surf-tabbed, librewolf, ytfzf, screenlock, screenshot, bluetooth, dmsounds --- config.def.h | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 451e6f6..20b72f1 100644 --- a/config.def.h +++ b/config.def.h @@ -58,8 +58,24 @@ static const Layout layouts[] = { /* 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 *termcmd[] = { "st", NULL }; +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 char *scrnlock[] = { "slock", NULL }; +static const char *scrnshot[] = { "scst", NULL }; +static const char *scrnshotsel[] = { "scst", "s", NULL }; +static const char *nnnfm[] = { "st", "nnn", "-dec", NULL }; +static const char *bluctl[] = { "bluctl", NULL }; +static const char *dmsounds[] = { "dmsounds", NULL }; +static const char *web[] = { "tabbed", "-c", "surf", "-e", NULL }; +static const char *webalt[] = { "librewolf", NULL }; +static const char *ncmpcpp[] = { "st", "ncmpcpp-ueberzug", NULL }; +static const char *ytsearch[] = { "st", "ytfzf", "-tl", NULL }; +static const char *ytsub[] = { "st", "ytfzf", "-tl", "--subs=4", NULL }; + +/* audio control */ +static const char *upvol[] = { "pamixer", "-i", "5", NULL }; +static const char *downvol[] = { "pamixer", "-d", "5", NULL }; +static const char *mutevol[] = { "pamixer", "-t", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -89,6 +105,20 @@ static const Key keys[] = { { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, + { MODKEY, XK_F10, spawn, {.v = upvol } }, + { MODKEY, XK_F9, spawn, {.v = downvol } }, + { MODKEY, XK_F8, spawn, {.v = mutevol } }, + { MODKEY, XK_x, spawn, {.v = scrnlock } }, + { MODKEY, XK_s, spawn, {.v = scrnshotsel } }, + { MODKEY|ShiftMask, XK_s, spawn, {.v = scrnshot } }, + { MODKEY, XK_a, spawn, {.v = nnnfm } }, + { MODKEY, XK_F3, spawn, {.v = bluctl } }, + { MODKEY|ShiftMask, XK_a, spawn, {.v = dmsounds } }, + { MODKEY, XK_w, spawn, {.v = web } }, + { MODKEY|ShiftMask, XK_w, spawn, {.v = webalt } }, + { MODKEY, XK_n, spawn, {.v = ncmpcpp } }, + { MODKEY, XK_y, spawn, {.v = ytsearch } }, + { MODKEY|ShiftMask, XK_y, spawn, {.v = ytsub } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) -- cgit v1.2.3