Browse Source

volume keys

main
parent
commit
242eaf3f7b
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      config.def.h

+ 10
- 0
config.def.h View File

@ -1,5 +1,11 @@
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
//volume
static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "+5%", NULL };
static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "-5%", NULL };
static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL };
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int gappx = 5; /* gaps between windows */
@ -99,6 +105,10 @@ static Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioMute, spawn, {.v = mutevol } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
};
};
/* button definitions */


Loading…
Cancel
Save