From 8fb574976a6d31aa1b64eeaed4f37a41e15f47b7 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 19 Sep 2023 20:39:33 -0400 Subject: [PATCH] apply basic configuration settings - Configure the modkey - Let dmenu configure itself - Integrate xresources configuration --- config.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/config.h b/config.h index c68f851..a26fc76 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#include + /* appearance */ static unsigned int borderpx = 1; /* border pixel of windows */ 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 */ #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_TAGSPX 5 // # pixels for tag grid boxes #define BARTAB_TAGSROWS 3 // # rows in tag grid (9 tags, e.g. 3x3) @@ -62,7 +64,7 @@ static const Layout layouts[] = { }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -74,26 +76,20 @@ static const Layout layouts[] = { /* commands */ 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 }; /* * Xresources preferences to load at startup */ ResourcePref resources[] = { - { "normbgcolor", STRING, &normbgcolor }, - { "normbordercolor", STRING, &normbordercolor }, - { "normfgcolor", STRING, &normfgcolor }, - { "selbgcolor", STRING, &selbgcolor }, - { "selbordercolor", STRING, &selbordercolor }, - { "selfgcolor", STRING, &selfgcolor }, + { "background", STRING, &normbgcolor }, + { "fadeColor", STRING, &normbordercolor }, + { "foreground", STRING, &normfgcolor }, + { "accentColor", STRING, &selbgcolor }, + { "accentColor", STRING, &selbordercolor }, + { "foreground", STRING, &selfgcolor }, { "borderpx", INTEGER, &borderpx }, - { "snap", INTEGER, &snap }, - { "showbar", INTEGER, &showbar }, - { "topbar", INTEGER, &topbar }, - { "nmaster", INTEGER, &nmaster }, - { "resizehints", INTEGER, &resizehints }, - { "mfact", FLOAT, &mfact }, }; static Key keys[] = {