From 47c132db4e7973ba7c2306d9786a741cedd5e79b Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 10 Aug 2019 16:56:17 -0500 Subject: [PATCH] Added volume up/down using two shell scripts: pactl set-sink-volume +/-N% --- config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.h b/config.h index a520b10..c1f1cba 100644 --- a/config.h +++ b/config.h @@ -77,6 +77,8 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "urxvt256c", NULL }; static const char *lockcmd[] = { "slock", 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[] = { /* modifier key function argument */ @@ -115,6 +117,8 @@ static Key keys[] = { //{ MODKEY|ShiftMask, XK_q, quit, {0} }, { MODKEY|ControlMask, XK_q, quit, {0} }, { 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 } }, };