summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h58
1 files changed, 34 insertions, 24 deletions
diff --git a/config.def.h b/config.def.h
index 6c22796..9a0dac3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -3,34 +3,44 @@ static const char *user = "master";
static const char *group = "wheel";
static const char *colorname[NUMCOLS] = {
- [INIT] = "black", /* after initialization */
- [INPUT] = "#7D4B23", /* during input */
- [FAILED] = "#B7416E", /* wrong password */
- [BLOCKS] = "#f2f1f0", /* key feedback block */
- [PAM] = "#19B596", /* waiting for PAM */
+ [BACKGROUND] = "black", /* after initialization */
+ [INIT] = "#2d2d2d", /* after initialization */
+ [INPUT] = "#005577", /* during input */
+ [FAILED] = "#cc3333", /* wrong password */
+ [PAM] = "#9400d3", /* waiting for PAM */
+};
+
+/*
+ * Xresources preferences to load at startup
+ */
+ResourcePref resources[] = {
+ { "color11", STRING, &colorname[INIT] },
+ { "color6", STRING, &colorname[INPUT] },
+ { "color4", STRING, &colorname[FAILED] },
+ { "color2", STRING, &colorname[PAM] },
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
-/* PAM service that's used for authentication */
-static const char* pam_service = "login";
-
-// ### Blocks bar ###
-static short int blocks_enabled = 1; // 0 = don't show blocks
-static const int blocks_width = 0; // 0 = full width
-static const int blocks_height = 16;
-
-// position
-static const int blocks_x = 0;
-static const int blocks_y = 0;
-
-// Number of blocks
-static const int blocks_count = 10;
-// ### \Blocks bar ###
+/* 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*/
+static const int logoh = 6;
+
+static XRectangle rectangles[9] = {
+ /* x y w h */
+ { 0, 3, 1, 3 },
+ { 1, 3, 2, 1 },
+ { 0, 5, 8, 1 },
+ { 3, 0, 1, 5 },
+ { 5, 3, 1, 2 },
+ { 7, 3, 1, 2 },
+ { 8, 3, 4, 1 },
+ { 9, 4, 1, 2 },
+ { 11, 4, 1, 2 },
+};
-/* time in seconds to cancel lock with mouse movement */
-static const int timetocancel = 4;
-/* time in seconds before the monitor shuts down */
-static const int monitortime = 5;
+/* PAM service that's used for authentication */
+static const char* pam_service = "login";