2021-06-19 15:05:17 +02:00
|
|
|
/* user and group to drop privileges to */
|
2021-07-16 21:46:31 +02:00
|
|
|
static const char *user = "f";
|
|
|
|
static const char *group = "users";
|
2021-06-19 15:05:17 +02:00
|
|
|
|
|
|
|
static const char *colorname[NUMCOLS] = {
|
|
|
|
[BACKGROUND] = "black", /* after initialization */
|
|
|
|
[INIT] = "#2d2d2d", /* after initialization */
|
|
|
|
[INPUT] = "#005577", /* during input */
|
|
|
|
[FAILED] = "#CC3333", /* wrong password */
|
2021-07-16 21:46:31 +02:00
|
|
|
[PAM] = "#005577", /* waiting for PAM */
|
2021-06-19 15:05:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
|
|
static const int failonclear = 1;
|
|
|
|
|
2021-07-16 21:46:31 +02:00
|
|
|
/* PAM service that's used for authentication */
|
|
|
|
static const char* pam_service = "login";
|
|
|
|
|
2021-06-19 15:05:17 +02:00
|
|
|
/* 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 },
|
|
|
|
|
|
|
|
};
|