Switched to amixer

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

@ -83,15 +83,17 @@ 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 const char *mutecmd[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
static const char *volupcmd[] = { "amixer", "-q", "set", "Master", "5%+", "unmute", NULL };
static const char *voldowncmd[] = { "amixer", "-q", "set", "Master", "5%-", "unmute", NULL };
static const char *miccmd[] = { "amixer", "set", "Capture", "toggle", 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_Pause, spawn, {.v = miccmd} },
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },

Loading…
Cancel
Save