From 9b7ba809257781c072afc87202be07a90f756041 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Wed, 25 Nov 2020 13:09:01 -0500 Subject: [PATCH] X Resource Parameterization - Create X resource parameters for border and gap sizes --- config.def.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/config.def.h b/config.def.h index 85af799..7e61b9f 100644 --- a/config.def.h +++ b/config.def.h @@ -1,12 +1,12 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 2; /* border pixel of windows */ +static unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ -static const unsigned int gappih = 20; /* horiz inner gap between windows */ -static const unsigned int gappiv = 20; /* vert inner gap between windows */ -static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ -static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ +static unsigned int gappih = 20; /* horiz inner gap between windows */ +static unsigned int gappiv = 20; /* vert inner gap between windows */ +static unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ +static unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ static const int noborder = 0; /* 1 means no border when there is only one window */ static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ static int smartgaps = 1; /* 1 means no outer gap when there is only one window */ @@ -136,7 +136,11 @@ ResourcePref resources[] = { { "selbgcolor", STRING, &selbgcolor }, { "selbordercolor", STRING, &selbordercolor }, { "selfgcolor", STRING, &selfgcolor }, - // { "borderpx", INTEGER, &borderpx }, + { "borderpx", INTEGER, &borderpx }, + { "gappih", INTEGER, &gappih }, + { "gappiv", INTEGER, &gappiv }, + { "gappoh", INTEGER, &gappoh }, + { "gappov", INTEGER, &gappov }, // { "snap", INTEGER, &snap }, // { "showbar", INTEGER, &showbar }, // { "topbar", INTEGER, &topbar },