From 3f1090257b39088e50fa84e238d73a9a6530d168 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Tue, 16 Jun 2020 18:10:25 +0200 Subject: added volume control --- dwm/config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dwm/config.h') diff --git a/dwm/config.h b/dwm/config.h index ae2980e..689c2ee 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -58,6 +58,8 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL }; static const char *passmenucmd[] = { "passmenu", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL }; +static const char *volumeup[] = { "amixer", "-D", "pulse", "sset", "Master", "5%+", NULL}; +static const char *volumedown[] = { "amixer", "-D", "pulse", "sset", "Master", "5%-", NULL}; static const char *termcmd[] = { "st", NULL }; static const char *exitcmd[] = { "killall", "xinit", NULL }; @@ -67,6 +69,9 @@ static Key keys[] = { { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_c, spawn, {.v = passmenucmd } }, + { MODKEY, XK_equal, spawn, {.v = volumeup } }, + { MODKEY, XK_minus, spawn, {.v = volumedown } }, + { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_r, quit, {0} }, { MODKEY|ShiftMask, XK_e, spawn, {.v = exitcmd} }, -- cgit v1.2.3