static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *helpcmd[] = { "st", "-e", "man", "dwm", NULL };
-static const char *monbrightnessup[] = { "xbacklight", "-inc", "10", NULL };
-static const char *monbrightnessdown[] = { "xbacklight", "-dec", "10", NULL };
-static const char *audiomute[] = { "sh", "-c", "echo audiomute >>$HOME/mediakey.log", NULL };
-static const char *audiolowervolume[] = { "sh", "-c", "echo audiolowervolume >>$HOME/mediakey.log", NULL };
-static const char *audioraisevolume[] = { "sh", "-c", "echo audioraisevolume >>$HOME/mediakey.log", NULL };
-static const char *audiomicmute[] = { "sh", "-c", "echo audiomicmute >>$HOME/mediakey.log", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY|ShiftMask, XK_h, spawn, {.v = helpcmd } },
/* XF86 Media Keys */
- { 0, XF86XK_MonBrightnessUp, spawn, {.v = monbrightnessup } },
- { 0, XF86XK_MonBrightnessDown, spawn, {.v = monbrightnessdown } },
- { 0, XF86XK_AudioMute, spawn, {.v = audiomute } },
- { 0, XF86XK_AudioLowerVolume, spawn, {.v = audiolowervolume } },
- { 0, XF86XK_AudioRaiseVolume, spawn, {.v = audioraisevolume } },
- { 0, XF86XK_AudioMicMute, spawn, {.v = audiomicmute } },
+ { 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char *[]){ "xbacklight", "-inc", "10", NULL } } },
+ { 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char *[]){ "xbacklight", "-dec", "10", NULL } } },
+ { 0, XF86XK_AudioMute, spawn, {.v = (const char *[]){ "sh", "-c", "echo audiomute >>$HOME/mediakey.log", NULL } } },
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = (const char *[]){ "sh", "-c", "echo audiolowervolume >>$HOME/mediakey.log", NULL } } },
+ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = (const char *[]){ "sh", "-c", "echo audioraisevolume >>$HOME/mediakey.log", NULL } } },
+ { 0, XF86XK_AudioMicMute, spawn, {.v = (const char *[]){ "sh", "-c", "echo audiomicmute >>$HOME/mediakey.log", NULL } } },
+ { 0, XF86XK_WebCam, spawn, {.v = (const char *[]){ "sh", "-c", "echo webcam >>$HOME/mediakey.log", NULL } } },
};
/* button definitions */