Apply patch backlight

This commit is contained in:
Fabio Scotto di Santolo
2025-08-29 22:15:49 +02:00
parent 692b703dc3
commit 8b9ed2c12d
5 changed files with 171 additions and 2 deletions

View File

@@ -60,6 +60,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 *upbrightness[] = { "xbacklight", "-inc", "10", NULL };
static const char *downbrightness[] = { "xbacklight", "-dec", "10", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -96,6 +98,8 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrightness } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = downbrightness } },
};
/* button definitions */