From: jxnshi Date: Sat, 25 Jan 2025 13:18:47 +0000 (+0100) Subject: Add music player shortcut X-Git-Url: https://jxnshi.xyz/repos?a=commitdiff_plain;h=dd84aafd0589cdc729bc4e7556176ff816d1e681;p=dwm-config.git Add music player shortcut --- diff --git a/config.def.h b/config.def.h index 7f315bd..88002bf 100644 --- a/config.def.h +++ b/config.def.h @@ -58,9 +58,10 @@ 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 *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 Key keys[] = { /* modifier key function argument */ @@ -88,6 +89,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY, XK_w, spawn, {.v = browsercmd } }, + { MODKEY, XK_n, spawn, {.v = musicplayercmd } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2)