From 26352128baf12babb520e2f6208055d1db3b309c Mon Sep 17 00:00:00 2001 From: jxnshi Date: Sun, 26 Jan 2025 15:00:21 +0100 Subject: [PATCH] Add shortcuts --- config.def.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 2bf2b28..a5076a9 100644 --- a/config.def.h +++ b/config.def.h @@ -65,14 +65,15 @@ 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[] = { "$TERM", NULL }; static const char *browsercmd[] = { "$BROWSER", NULL }; static const char *musicplayercmd[] = { "$MUSIC_PLAYER", NULL }; +static const char *rssreadercmd[] = { "$RSS_READER", NULL }; +static const char *screenshotcmd[] = { "$SCREENSHOT", NULL }; +static const char *termcmd[] = { "$TERM", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -96,6 +97,9 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY, XK_w, spawn, {.v = browsercmd } }, { MODKEY, XK_n, spawn, {.v = musicplayercmd } }, + { MODKEY, XK_r, spawn, {.v = rssreadercmd } }, + { MODKEY, XK_s, spawn, {.v = screenshotcmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) -- 2.49.0