Volume binds

pull/34/head
E. Almqvist 3 years ago
parent a8dc0eefc2
commit aae4935880
  1. 8
      src/config.h

@ -1,4 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
/* appearance */
static const unsigned int borderpx = 4; /* border pixel of windows */
@ -82,8 +83,15 @@ static const char *betterlockscreencmd[] = { "betterlockscreen", "--lock", "blur
static const char *screenshotcmd[] = { "flameshot", "gui", NULL };
static const char *cmuspausecmd[] = { "cmus-remote", "--pause", NULL };
static const char *mutecmd[] = { "pactl", "set-sink-mute", "0", "toggle", NULL };
static const char *volupcmd[] = { "pactl", "set-sink-volume", "0", "+5%", NULL };
static const char *voldowncmd[] = { "pactl", "set-sink-volume", "0", "-5%", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd} },
{ MODKEY, XF86XK_AudioRaiseVolume, spawn, {.v = volupcmd} },
{ MODKEY, XF86XK_AudioMute, spawn, {.v = mutecmd} },
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },

Loading…
Cancel
Save