From c743ca4acb256a00a15a05b8959bbcc08d9bfcb4 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Wed, 23 Apr 2014 20:33:31 -0600 Subject: [PATCH] added keybinding and command for cmus --- dwm.config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dwm.config.h b/dwm.config.h index fd945ef..d969f3b 100644 --- a/dwm.config.h +++ b/dwm.config.h @@ -54,12 +54,17 @@ static const char *termcmd[] = { "termite", NULL }; static const char *upvol[] = { "amixer", "sset", "Master", "1%+", NULL}; static const char *downvol[] = { "amixer", "sset", "Master", "1%-", NULL}; static const char *mute[] = { "amixer", "sset", "Master", "toggle", NULL}; +/*cmus functions*/ +static const char *cmusplaypause[] = { "cmus-remote", "-u", NULL}; +static const char *cmusnext[] = { "cmus-remote", "--next", NULL}; +static const char *cmusprev[] = { "cmus-remote", "--prev", NULL}; static Key keys[] = { /* modifier key function argument */ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol} }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol} }, { 0, XF86XK_AudioMute, spawn, {.v = mute } }, + { MODKEY, XK_u, spawn, {.v = cmusplaypause} }, { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} },