Add backlight control shortcuts
This commit is contained in:
parent
154f8d8df2
commit
01e84b889c
1 changed files with 4 additions and 0 deletions
|
@ -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 } },
|
||||
|
|
Loading…
Reference in a new issue