M config.def.h => config.def.h +11 -3
@@ 18,6 18,11 @@ static const char *colors[][3] = {
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
+/* amixer keyboard shortcuts */
+static const char *upvol[] = { "/usr/bin/amixer", "set", "Master", "5%+", NULL };
+static const char *downvol[] = { "/usr/bin/amixer", "set", "Master", "5%-", NULL };
+static const char *mutevol[] = { "/usr/bin/amixer", "set", "Master", "toggle", NULL };
+
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ 31,7 36,7 @@ static const Rule rules[] = {
{ "Firefox", NULL, NULL, 1 << 8, 1, 1, -1 },
{ "qutebrowser", NULL, NULL, 0, 1, 1, -1 },
{ "surf", NULL, NULL, 0, 1, 1, -1 },
- { "st", NULL, NULL, 0, 1, 1, -1 },
+ { "st", NULL, NULL, 0, 0, 0, -1 },
};
/* layout(s) */
@@ 42,8 47,8 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win
static const Layout layouts[] = {
/* symbol arrange function */
- { "><>", NULL }, /* no layout function means floating behavior */
{ "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
@@ 98,7 103,10 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
- { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} },
+ { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} },
+ { MODKEY, XK_F8, spawn, {.v = downvol } },
+ { MODKEY, XK_F11, spawn, {.v = mutevol } },
+ { MODKEY, XK_F9, spawn, {.v = upvol } },
};
/* button definitions */
M config.h => config.h +11 -3
@@ 18,6 18,11 @@ static const char *colors[][3] = {
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
+/* amixer keyboard shortcuts */
+static const char *upvol[] = { "/usr/bin/amixer", "set", "Master", "5%+", NULL };
+static const char *downvol[] = { "/usr/bin/amixer", "set", "Master", "5%-", NULL };
+static const char *mutevol[] = { "/usr/bin/amixer", "set", "Master", "toggle", NULL };
+
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ 31,7 36,7 @@ static const Rule rules[] = {
{ "Firefox", NULL, NULL, 1 << 8, 1, 1, -1 },
{ "qutebrowser", NULL, NULL, 0, 1, 1, -1 },
{ "surf", NULL, NULL, 0, 1, 1, -1 },
- { "st", NULL, NULL, 0, 1, 1, -1 },
+ { "st", NULL, NULL, 0, 0, 0, -1 },
};
/* layout(s) */
@@ 42,8 47,8 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win
static const Layout layouts[] = {
/* symbol arrange function */
- { "><>", NULL }, /* no layout function means floating behavior */
{ "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
@@ 98,7 103,10 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
- { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} },
+ { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} },
+ { MODKEY, XK_F8, spawn, {.v = downvol } },
+ { MODKEY, XK_F11, spawn, {.v = mutevol } },
+ { MODKEY, XK_F9, spawn, {.v = upvol } },
};
/* button definitions */
M dwm => dwm +0 -0
M dwm.o => dwm.o +0 -0