From 1d9e4925875bad552e4e907eee5a78f1335064e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Sat, 29 Jan 2022 23:20:57 +0100 Subject: [PATCH] brightness... --- config.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */