diff --git a/config.h b/config.h index 0b2d35d..8d568d4 100644 --- a/config.h +++ b/config.h @@ -64,6 +64,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[] = { "alacritty", NULL }; +static const char *brightnessup[] = { "sudo", "brightnessctl", "set", "+10%", NULL}; +static const char *brightnessdown[] = { "sudo", "brightnessctl", "set", "10%-", NULL}; static Key keys[] = { /* modifier key function argument */ @@ -106,6 +108,8 @@ static Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { MODKEY, 0x1008ff02,spawn, {.v = brightnessup} }, + { MODKEY, 0x1008ff03,spawn, {.v = brightnessdown} }, }; /* button definitions */