From 6a442a9686282242fc099b4c769019d3623432f6 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Wed, 18 Mar 2026 22:37:09 +0000 Subject: Patched in play/pause button on keyboard --- dwm/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwm/config.h') diff --git a/dwm/config.h b/dwm/config.h index 39b91b5..5b9f1c1 100755 --- a/dwm/config.h +++ b/dwm/config.h @@ -66,6 +66,7 @@ static const char *xlockmodes[] = { "spiral", "space", "helix", "grav" }; static const char *lockcmd[] = { "xlock", "-mode", NULL, NULL }; static const char *brightnessupcmd[] = { "brightnessctl", "s", "+10%", NULL }; static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL }; +static const char *playpausecmd[] = { "playerctl", "play-pause", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -106,6 +107,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_q, quit, {0} }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessupcmd } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdowncmd } }, + { 0, XF86XK_AudioPlay, spawn, {.v = playpausecmd } }, }; /* button definitions */ -- cgit v1.2.3