diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include <X11/XF86keysym.h> /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ @@ -60,6 +61,11 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; +/* volume controls [wireplumber] */ +static const char *volumeincrease[] = { "wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL }; +static const char *volumedecrease[] = { "wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL }; +static const char *volumemute[] = { "wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL }; + static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, @@ -95,6 +101,9 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { 0, XF86XK_AudioMute , spawn, {.v = volumemute } }, + { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumedecrease } }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumeincrease } }, }; /* button definitions */ |