diff options
-rw-r--r-- | config.def.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h index 5235a2c..c29dae4 100644 --- a/config.def.h +++ b/config.def.h @@ -93,10 +93,14 @@ 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 char *mutemic[] = { "mutemic", NULL }; +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 char *mutemic[] = { "mutemic", NULL }; +static const char *audiotoggle[] = { "mctl", "toggle", NULL }; +static const char *audiokill[] = { "mctl", "kill", NULL }; +static const char *audioprev[] = { "mctl", "prev", NULL }; +static const char *audionext[] = { "mctl", "next", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -131,6 +135,10 @@ static const Key keys[] = { { 0, XK_XF86AudioLowerVolume, spawn, {.v = downvol } }, { 0, XK_XF86AudioMute, spawn, {.v = mutevol } }, { 0, XK_XF86AudioMicMute, spawn, {.v = mutemic } }, + { 0, XK_XF86AudioPlay, spawn, {.v = audiotoggle } }, + { 0, XK_XF86AudioStop, spawn, {.v = audiokill } }, + { 0, XK_XF86AudioPrev, spawn, {.v = audioprev } }, + { 0, XK_XF86AudioNext, spawn, {.v = audionext } }, { MODKEY, XK_x, spawn, {.v = scrnlock } }, { MODKEY, XK_s, spawn, {.v = scrnshotsel } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = scrnshot } }, |