aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarcel Screm <marcel@marcelscrem.com>2026-01-05 23:01:34 +0100
committerMarcel Screm <marcel@marcelscrem.com>2026-01-05 23:01:34 +0100
commit569fc7aeef896e0ba1883702b475631a581f5449 (patch)
tree3c13d9cdec00e67df732daaa1a5f53e5cb760dab /config.def.h
parent7a016aa99ae7bb41663acf3d8221790adc50beb4 (diff)
added xresources patchHEADmaster
Diffstat (limited to 'config.def.h')
-rwxr-xr-xconfig.def.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 0940fb8..8a6d771 100755
--- a/config.def.h
+++ b/config.def.h
@@ -3,15 +3,25 @@ static const char *user = "nobody";
static const char *group = "nogroup";
static const char *colorname[NUMCOLS] = {
- [BACKGROUND] = "black", /* after initialization */
- [INIT] = "#2d2d2d", /* after initialization */
- [INPUT] = "#005577", /* during input */
+ [BACKGROUND] = "black",
+ [INIT] = "black", /* after initialization */
+ [INPUT] = "#005577", /* during input */
[FAILED] = "#CC3333", /* wrong password */
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
+/*
+ * Xresources preferences to load at startup
+ */
+ResourcePref resources[] = {
+ { "color0", STRING, &colorname[INIT] },
+ { "color4", STRING, &colorname[INPUT] },
+ { "color1", STRING, &colorname[FAILED] },
+};
+
+
/* insert grid pattern with scale 1:1, the size can be changed with logosize */
static const int logosize = 75;
static const int logow = 12; /* grid width and height for right center alignment*/