X Resource Parameterization
- Create X resource parameters for border and gap sizes
This commit is contained in:
16
config.def.h
16
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 },
|
||||
|
Reference in New Issue
Block a user