diff --git a/config.h b/config.h index 5af376d..780b76e 100644 --- a/config.h +++ b/config.h @@ -71,9 +71,13 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_amber, "-sb", col_amber, "-sf", col_black, NULL }; static const char *termcmd[] = { "st", NULL }; -static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; -static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; -static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; +static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; +static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; +static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; +static const char *plstop[] = { "playerctl", "stop", NULL }; +static const char *plpause[] = { "playerctl", "play-pause", NULL }; +static const char *plnext[] = { "playerctl", "previous", NULL }; +static const char *plprev[] = { "playerctl", "next", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -131,6 +135,14 @@ static const Key keys[] = { { WINKEY, XK_F10, spawn, {.v = downvol } }, { WINKEY, XK_F11, spawn, {.v = upvol } }, { WINKEY, XK_F9, spawn, {.v = mutevol } }, + { WINKEY, XK_F5, spawn, {.v = plprev } }, + { WINKEY, XK_F6, spawn, {.v = plnext } }, + { WINKEY, XK_F7, spawn, {.v = plpause } }, + { WINKEY, XK_F8, spawn, {.v = plstop } }, + { WINKEY, XF86XK_AudioPrev, spawn, {.v = plprev } }, + { WINKEY, XF86XK_AudioNext, spawn, {.v = plnext } }, + { WINKEY, XF86XK_AudioPause, spawn, {.v = plpause } }, + { WINKEY, XF86XK_AudioStop, spawn, {.v = plstop } }, }; /* button definitions */