From 95c8f4ef1121ea05ad746200d9deaed7ea2a5593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Fri, 20 Nov 2020 23:40:14 +0100 Subject: [PATCH] change border size, add backlight shortcuts --- config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 0bf6c2a..9c2c4c8 100644 --- a/config.h +++ b/config.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -58,6 +58,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 *backlightupcmd[] = { "light", "-A", "5", NULL }; +static const char *backlightdowncmd[] = { "light", "-U", "5", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -94,6 +96,9 @@ static Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + /* backlight adjustment */ + { MODKEY, XK_equal, spawn, {.v = backlightupcmd } }, + { MODKEY, XK_minus, spawn, {.v = backlightdowncmd } }, }; /* button definitions */