diff options
Diffstat (limited to 'dwm')
-rw-r--r-- | dwm/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
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} }, |