brightness control added
This commit is contained in:
parent
16af968b2c
commit
3034fe2319
@ -59,10 +59,13 @@ 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[] = { "kitty", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
/* { MODKEY|ShiftMask, 10, spawn, {.v = slockcmd } }, */
|
||||
{ 0, 233, spawn, {.v = brightness[0]}},
|
||||
{ 0, 232, spawn, {.v = brightness[1]}},
|
||||
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
|
||||
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
|
||||
{ MODKEY, 56, togglebar, {0} }, // b
|
||||
|
3
config.h
3
config.h
@ -59,10 +59,13 @@ 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[] = { "kitty", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
/* { MODKEY|ShiftMask, 10, spawn, {.v = slockcmd } }, */
|
||||
{ 0, 233, spawn, {.v = brightness[0]}},
|
||||
{ 0, 232, spawn, {.v = brightness[1]}},
|
||||
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
|
||||
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
|
||||
{ MODKEY, 56, togglebar, {0} }, // b
|
||||
|
Loading…
Reference in New Issue
Block a user