Apply patch backlight
This commit is contained in:
@@ -60,6 +60,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_cyan, "-sf", col_gray4, NULL };
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
static const char *upbrightness[] = { "xbacklight", "-inc", "10", NULL };
|
||||
static const char *downbrightness[] = { "xbacklight", "-dec", "10", NULL };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
@@ -96,6 +98,8 @@ static const Key keys[] = {
|
||||
TAGKEYS( XK_8, 7)
|
||||
TAGKEYS( XK_9, 8)
|
||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrightness } },
|
||||
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = downbrightness } },
|
||||
};
|
||||
|
||||
/* button definitions */
|
||||
|
||||
Reference in New Issue
Block a user