Added volume up/down using two shell scripts: pactl set-sink-volume +/-N%

This commit is contained in:
jon
2019-08-10 16:56:17 -05:00
parent 72dbded0e1
commit 47c132db4e

View File

@@ -77,6 +77,8 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *termcmd[] = { "urxvt256c", NULL }; static const char *termcmd[] = { "urxvt256c", NULL };
static const char *lockcmd[] = { "slock", NULL }; static const char *lockcmd[] = { "slock", NULL };
static const char *prtscrcmd[] = { "flameshot", "gui", NULL}; static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
static const char *vol_up[] = { "volume_up", NULL};
static const char *vol_down[] = { "volume_down", NULL};
static Key keys[] = { static Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@@ -115,6 +117,8 @@ static Key keys[] = {
//{ MODKEY|ShiftMask, XK_q, quit, {0} }, //{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY|ControlMask, XK_q, quit, {0} }, { MODKEY|ControlMask, XK_q, quit, {0} },
{ 0, XK_Print, spawn, {.v = prtscrcmd } }, { 0, XK_Print, spawn, {.v = prtscrcmd } },
{ MODKEY, XK_F11, spawn, {.v = vol_down } },
{ MODKEY, XK_F12, spawn, {.v = vol_up } },
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } }, { MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },
}; };