apply basic configuration settings
- Configure the modkey - Let dmenu configure itself - Integrate xresources configuration
parent
31895dd873
commit
8fb574976a
26
config.h
26
config.h
|
|
@ -1,5 +1,7 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
static unsigned int borderpx = 1; /* border pixel of windows */
|
static unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static unsigned int snap = 32; /* snap pixel */
|
static unsigned int snap = 32; /* snap pixel */
|
||||||
|
|
@ -47,7 +49,7 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win
|
||||||
|
|
||||||
/* Bartabgroups properties */
|
/* Bartabgroups properties */
|
||||||
#define BARTAB_BORDERS 1 // 0 = off, 1 = on
|
#define BARTAB_BORDERS 1 // 0 = off, 1 = on
|
||||||
#define BARTAB_BOTTOMBORDER 1 // 0 = off, 1 = on
|
#define BARTAB_BOTTOMBORDER 0 // 0 = off, 1 = on
|
||||||
#define BARTAB_TAGSINDICATOR 1 // 0 = off, 1 = on if >1 client/view tag, 2 = always on
|
#define BARTAB_TAGSINDICATOR 1 // 0 = off, 1 = on if >1 client/view tag, 2 = always on
|
||||||
#define BARTAB_TAGSPX 5 // # pixels for tag grid boxes
|
#define BARTAB_TAGSPX 5 // # pixels for tag grid boxes
|
||||||
#define BARTAB_TAGSROWS 3 // # rows in tag grid (9 tags, e.g. 3x3)
|
#define BARTAB_TAGSROWS 3 // # rows in tag grid (9 tags, e.g. 3x3)
|
||||||
|
|
@ -62,7 +64,7 @@ static const Layout layouts[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* key definitions */
|
/* key definitions */
|
||||||
#define MODKEY Mod1Mask
|
#define MODKEY Mod4Mask
|
||||||
#define TAGKEYS(KEY,TAG) \
|
#define TAGKEYS(KEY,TAG) \
|
||||||
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||||
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||||
|
|
@ -74,26 +76,20 @@ static const Layout layouts[] = {
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Xresources preferences to load at startup
|
* Xresources preferences to load at startup
|
||||||
*/
|
*/
|
||||||
ResourcePref resources[] = {
|
ResourcePref resources[] = {
|
||||||
{ "normbgcolor", STRING, &normbgcolor },
|
{ "background", STRING, &normbgcolor },
|
||||||
{ "normbordercolor", STRING, &normbordercolor },
|
{ "fadeColor", STRING, &normbordercolor },
|
||||||
{ "normfgcolor", STRING, &normfgcolor },
|
{ "foreground", STRING, &normfgcolor },
|
||||||
{ "selbgcolor", STRING, &selbgcolor },
|
{ "accentColor", STRING, &selbgcolor },
|
||||||
{ "selbordercolor", STRING, &selbordercolor },
|
{ "accentColor", STRING, &selbordercolor },
|
||||||
{ "selfgcolor", STRING, &selfgcolor },
|
{ "foreground", STRING, &selfgcolor },
|
||||||
{ "borderpx", INTEGER, &borderpx },
|
{ "borderpx", INTEGER, &borderpx },
|
||||||
{ "snap", INTEGER, &snap },
|
|
||||||
{ "showbar", INTEGER, &showbar },
|
|
||||||
{ "topbar", INTEGER, &topbar },
|
|
||||||
{ "nmaster", INTEGER, &nmaster },
|
|
||||||
{ "resizehints", INTEGER, &resizehints },
|
|
||||||
{ "mfact", FLOAT, &mfact },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue