aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rwxr-xr-xconfig.def.h14
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 },