diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2021-08-18 21:23:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 21:23:01 -0500 |
| commit | b389765be77b8276e1b895f5075eff7c91e586ea (patch) | |
| tree | 9857a044966021f35d255dab03a72f5db538e236 | |
| parent | 5d9b7daf5a217c644173faa0201048266fc48175 (diff) | |
update volume controls
| -rw-r--r-- | config.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 } }, |
