From 01e84b889c82b66e79952c7263df06cb5df8eee7 Mon Sep 17 00:00:00 2001 From: lhark Date: Tue, 20 Dec 2016 00:03:02 -0500 Subject: [PATCH] Add backlight control shortcuts --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.def.h b/config.def.h index 018b2b8..890b6e6 100644 --- a/config.def.h +++ b/config.def.h @@ -63,6 +63,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 *backlightinccmd[] = { "xbacklight", "-inc", "5", NULL }; +static const char *backlightdeccmd[] = { "xbacklight", "-dec", "5", NULL }; static const char *volup[] = { "volcont", "--up", NULL }; static const char *voldown[] = { "volcont", "--down", "5", NULL }; static const char *voltog[] = { "volcont", "--toggle", "5", NULL }; @@ -74,6 +76,8 @@ static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_r, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { 0, 0x1008ff02,spawn, {.v = backlightinccmd } }, + { 0, 0x1008ff03,spawn, {.v = backlightdeccmd } }, { 0, 0x1008ff13,spawn, {.v = volup } }, { 0, 0x1008ff11,spawn, {.v = voldown } }, { 0, 0x1008ff12,spawn, {.v = voltog } },