]> jxnshi.xyz Git - dwm-config.git/commitdiff
Add music player shortcut
authorjxnshi <jxnshi@proton.me>
Sat, 25 Jan 2025 13:18:47 +0000 (14:18 +0100)
committerjxnshi <jxnshi@proton.me>
Sat, 25 Jan 2025 13:18:47 +0000 (14:18 +0100)
config.def.h

index 7f315bdc1e36c896040838702b7b1f6356fa48cc..88002bfd17d1b56795c5066837cb5764303ee874 100644 (file)
@@ -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)