|
|
|
@ -1,5 +1,7 @@
@@ -1,5 +1,7 @@
|
|
|
|
|
/* See LICENSE file for copyright and license details. */ |
|
|
|
|
|
|
|
|
|
#include <X11/XF86keysym.h> |
|
|
|
|
|
|
|
|
|
/* appearance */ |
|
|
|
|
#if ROUNDED_CORNERS_PATCH |
|
|
|
|
static const unsigned int borderpx = 0; /* border pixel of windows */ |
|
|
|
@ -850,8 +852,29 @@ static Key on_empty_keys[] = {
@@ -850,8 +852,29 @@ static Key on_empty_keys[] = {
|
|
|
|
|
}; |
|
|
|
|
#endif // ON_EMPTY_KEYS_PATCH
|
|
|
|
|
|
|
|
|
|
/* up volume */ |
|
|
|
|
static const char *upvolcmd[] = |
|
|
|
|
{ "/usr/bin/amixer", "set", "Master", "5%+", NULL }; |
|
|
|
|
|
|
|
|
|
/* down volume */ |
|
|
|
|
static const char *downvolcmd[] = |
|
|
|
|
{ "/usr/bin/amixer", "set", "Master", "5%-", NULL }; |
|
|
|
|
|
|
|
|
|
/* toggle volume */ |
|
|
|
|
static const char *togglevolcmd[] = |
|
|
|
|
{ "/usr/bin/amixer", "set", "Master", "toggle", NULL }; |
|
|
|
|
|
|
|
|
|
/* toggle microphone */ |
|
|
|
|
static const char *togglemiccmd[] = |
|
|
|
|
{ "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static Key keys[] = { |
|
|
|
|
/* modifier key function argument */ |
|
|
|
|
{ 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, |
|
|
|
|
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, |
|
|
|
|
{ 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, |
|
|
|
|
{ 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, |
|
|
|
|
#if KEYMODES_PATCH |
|
|
|
|
{ MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE } }, |
|
|
|
|
#endif // KEYMODES_PATCH
|
|
|
|
|