summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2021-08-18 21:23:01 -0500
committerGitHub <noreply@github.com>2021-08-18 21:23:01 -0500
commitb389765be77b8276e1b895f5075eff7c91e586ea (patch)
tree9857a044966021f35d255dab03a72f5db538e236 /config.h
parent5d9b7daf5a217c644173faa0201048266fc48175 (diff)
update volume controls
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.h b/config.h
index b5273fb..de9eacb 100644
--- a/config.h
+++ b/config.h
@@ -68,9 +68,10 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *dmenunmcmd[] = { "networkmanager_dmenu", NULL };
static const char *termcmd[] = { "st", NULL };
static const char *browsercmd[] = { "firefox", NULL };
-static const char *volup[] = { "amixer", "set", "Master", "10%+", NULL };
-static const char *voldown[] = { "amixer", "set", "Master", "10%-", NULL };
-static const char *volmute[] = { "amixer", "set", "Master", "0%", NULL };
+static const char *volup[] = { "pactl", "set-sink-volume", "0", "+10%", NULL };
+static const char *voldown[] = { "pactl", "set-sink-volume", "0", "-10%", NULL };
+static const char *volmax[] = { "pactl", "set-sink-volume", "0", "100%", NULL };
+static const char *volmute[] = { "pactl", "set-sink-volume", "0", "0%", NULL };
static Key keys[] = {
/* modifier key function argument */
@@ -80,7 +81,8 @@ static Key keys[] = {
{ MODKEY, XK_f, spawn, {.v = browsercmd } },
{ MODKEY, XK_j, spawn, {.v = volup } },
{ MODKEY, XK_k, spawn, {.v = voldown } },
- { MODKEY, XK_l, spawn, {.v = volmute } },
+ { MODKEY, XK_l, spawn, {.v = volmax } },
+ { MODKEY|ShiftMask, XK_l, spawn, {.v = volmute } },
{ MODKEY, XK_b, togglebar, {0} },
//{ MODKEY, XK_j, focusstack, {.i = +1 } },