From 77db57e9b3fe17097ed10de2568e2bfc48f2f542 Mon Sep 17 00:00:00 2001 From: Nikita Langer Date: Fri, 10 Apr 2026 18:09:12 +0200 Subject: Multimedia Keys --- config.def.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 8b557f7..2ee8957 100755 --- a/config.def.h +++ b/config.def.h @@ -137,6 +137,11 @@ static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", static const char *lockcmd[] = { "bash", "-c", "slock -m \"$(cowsay \"$(fortune)\" | lolcat -ft)\"", NULL }; static const char *screensht[] = { "/usr/local/bin/dwm-scripts/screenshot.sh", NULL }; static const char *scripts[] = { "/usr/local/bin/dwm-scripts/scripts.sh", NULL }; +static const char *playpause[] = { "playerctl", "play-pause", NULL }; +static const char *nexttrack[] = { "playerctl", "next", NULL }; +static const char *prevtrack[] = { "playerctl", "previous", NULL }; +static const char *stoptrack[] = { "playerctl", "stop", NULL }; +static const char *mutemic[] = { "pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL }; #include "movestack.c" @@ -190,8 +195,13 @@ static const Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, - // { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup} }, - // { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, + { 0, XF86XK_AudioPlay, spawn, {.v = playpause } }, + { 0, XF86XK_AudioNext, spawn, {.v = nexttrack } }, + { 0, XF86XK_AudioPrev, spawn, {.v = prevtrack } }, + { 0, XF86XK_AudioStop, spawn, {.v = stoptrack } }, + { 0, XF86XK_AudioMicMute, spawn, {.v = mutemic } }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = brighter } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = dimmer } }, { MODKEY, XK_F11, spawn, {.v = dimmer } }, { MODKEY, XK_F12, spawn, {.v = brighter } }, // { 0, XF86XK_AudioForward }, -- cgit