brightness...

This commit is contained in:
Özgür Kesim 2022-01-29 23:20:57 +01:00
parent 4a87a3bb7b
commit 1d9e492587

View File

@ -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 */