summaryrefslogtreecommitdiff
path: root/dwm/config.h
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-06-16 18:10:25 +0200
committerTom Barrett <tom@tombarrett.xyz>2020-06-16 18:10:25 +0200
commit3f1090257b39088e50fa84e238d73a9a6530d168 (patch)
tree82d1b0a14c0400f021d756fc6fc85b2a6a68c775 /dwm/config.h
parente60d9facc8437c986fe39fe1bde7ff7967e83285 (diff)
added volume control
Diffstat (limited to 'dwm/config.h')
-rw-r--r--dwm/config.h5
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} },