diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-04-10 18:09:12 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-04-10 18:09:12 +0200 |
| commit | 77db57e9b3fe17097ed10de2568e2bfc48f2f542 (patch) | |
| tree | 8c6193de467edcfaa6f8a17baccd61402ccecc20 /config.def.h | |
| parent | 1ddfb5c720e0afaff0d214ac1966c504d37ecde2 (diff) | |
| download | dwm-77db57e9b3fe17097ed10de2568e2bfc48f2f542.tar.gz dwm-77db57e9b3fe17097ed10de2568e2bfc48f2f542.tar.bz2 dwm-77db57e9b3fe17097ed10de2568e2bfc48f2f542.tar.xz dwm-77db57e9b3fe17097ed10de2568e2bfc48f2f542.zip | |
Multimedia Keys
Diffstat (limited to 'config.def.h')
| -rwxr-xr-x | config.def.h | 14 |
1 files changed, 12 insertions, 2 deletions
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 }, |
