Fixed mediacontrol related oopsies

This commit is contained in:
Jarkko Toivanen 2024-08-20 16:30:18 +03:00
parent 3902feca3d
commit 81f4df548b
Signed by: jt
GPG key ID: 9151B109B73ECAD5

View file

@ -76,8 +76,8 @@ static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@",
static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL };
static const char *plstop[] = { "playerctl", "stop", NULL }; static const char *plstop[] = { "playerctl", "stop", NULL };
static const char *plpause[] = { "playerctl", "play-pause", NULL }; static const char *plpause[] = { "playerctl", "play-pause", NULL };
static const char *plnext[] = { "playerctl", "previous", NULL }; static const char *plnext[] = { "playerctl", "next", NULL };
static const char *plprev[] = { "playerctl", "next", NULL }; static const char *plprev[] = { "playerctl", "previous", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@ -139,10 +139,10 @@ static const Key keys[] = {
{ WINKEY, XK_F6, spawn, {.v = plnext } }, { WINKEY, XK_F6, spawn, {.v = plnext } },
{ WINKEY, XK_F7, spawn, {.v = plpause } }, { WINKEY, XK_F7, spawn, {.v = plpause } },
{ WINKEY, XK_F8, spawn, {.v = plstop } }, { WINKEY, XK_F8, spawn, {.v = plstop } },
{ WINKEY, XF86XK_AudioPrev, spawn, {.v = plprev } }, { 0, XF86XK_AudioPrev, spawn, {.v = plprev } },
{ WINKEY, XF86XK_AudioNext, spawn, {.v = plnext } }, { 0, XF86XK_AudioNext, spawn, {.v = plnext } },
{ WINKEY, XF86XK_AudioPause, spawn, {.v = plpause } }, { 0, XF86XK_AudioPause, spawn, {.v = plpause } },
{ WINKEY, XF86XK_AudioStop, spawn, {.v = plstop } }, { 0, XF86XK_AudioStop, spawn, {.v = plstop } },
}; };
/* button definitions */ /* button definitions */