summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-01-01 16:15:40 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-01-01 16:15:40 -0500
commit19e284870d7c935cc426f9c06f687c23bf535b43 (patch)
treee104905d3c2d5cce6be6b2b39854a303c7474d79 /config.def.h
parente043234940d25f1d9c524efc82205b6b29399e65 (diff)
downloadtabbed-19e284870d7c935cc426f9c06f687c23bf535b43.tar.gz
Applied xresources patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index 51bb13d..ec85d23 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,13 +1,13 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const char font[] = "monospace:size=9";
-static const char* normbgcolor = "#222222";
-static const char* normfgcolor = "#cccccc";
-static const char* selbgcolor = "#555555";
-static const char* selfgcolor = "#ffffff";
-static const char* urgbgcolor = "#111111";
-static const char* urgfgcolor = "#cc0000";
+static char font[] = "monospace:size=9";
+static char* normbgcolor = "#222222";
+static char* normfgcolor = "#cccccc";
+static char* selbgcolor = "#555555";
+static char* selfgcolor = "#ffffff";
+static char* urgbgcolor = "#111111";
+static char* urgfgcolor = "#cc0000";
static const char before[] = "<";
static const char after[] = ">";
static const char titletrim[] = "...";
@@ -33,6 +33,19 @@ static Bool npisrelative = False;
} \
}
+/*
+ * Xresources preferences to load at startup
+ */
+ResourcePref resources[] = {
+ { "font", STRING, &font },
+ { "color0", STRING, &normbgcolor },
+ { "color4", STRING, &normfgcolor },
+ { "color4", STRING, &selbgcolor },
+ { "color7", STRING, &selfgcolor },
+ { "color2", STRING, &urgbgcolor },
+ { "color3", STRING, &urgfgcolor },
+};
+
#define MODKEY ControlMask
static const Key keys[] = {
/* modifier key function argument */