summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-10-25 22:25:36 -0400
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-10-25 22:25:36 -0400
commit189a79d971bcb609103dfea929535c38f9f68bb5 (patch)
treef9ce14c91722e3fd07b8fbe69248966b7fa9f3cc /config.def.h
parentf3dc7b88a52e37f4749a1a16af92711e6957921b (diff)
downloadslock-openbsd.tar.gz
OpenBSD supportopenbsd
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h42
1 files changed, 15 insertions, 27 deletions
diff --git a/config.def.h b/config.def.h
index 8ce4fc5..f9fb545 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,17 +1,15 @@
/* user and group to drop privileges to */
static const char *user = "nobody";
-static const char *group = "nogroup"; // use this one for Ubuntu
-//static const char *group = "nobody"; // use this one for Arch Linux
+static const char *group = "nogroup";
static const char *colorname[NUMCOLS] = {
- [INIT] = "black", /* after initialization */
+ [BACKGROUND] = "white",
+ [INIT] = "2d2d2d", /* after initialization */
[INPUT] = "#005577", /* during input */
[FAILED] = "#CC3333", /* wrong password */
- [CAPS] = "red", /* CapsLock on */
- [PAM] = "#9400D3", /* waiting for PAM */
+ [CAPS] = "red", /* CapsLock on */
};
-
/*
* Xresources preferences to load at startup
*/
@@ -20,35 +18,25 @@ ResourcePref resources[] = {
{ "color4", STRING, &colorname[INPUT] },
{ "color1", STRING, &colorname[FAILED] },
{ "color3", STRING, &colorname[CAPS] },
- { "color5", STRING, &colorname[PAM] },
};
-
/* treat a cleared input like a wrong password (color) */
-static const int failonclear = 0;
-
-static const int use_pam = 0;
-
-/* PAM service that's used for authentication */
-static const char* pam_service = "login";
+static const int failonclear = 1;
-/* insert grid pattern with scale 1:1, the size can be changed with logosize */
static const int logosize = 75;
-/* grid width and height for right center alignment */
-static const int logow = 12;
+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 },
+ {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},
};
/*Enable blur*/