suckless-slock/config.h

38 lines
1.0 KiB
C

/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nogroup";
static const char *colorname[NUMCOLS] = {
[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;
/* length of entires in scom */
#define entrylen 2
static const secretpass scom[entrylen] = {
/* password command */
{ "shutdown", "doas shutdown -h now" },
{ "time", "login_failure" },
};
/* number of failed password attempts until failcommand is executed.
Set to 0 to disable */
static const int failcount = 3;
/* command to be executed after [failcount] failed password attempts */
static const char *failcommand = "doas shutdown -h now";
/*Enable blur*/
#define BLUR
/*Set blur radius*/
static const int blurRadius=5;
/*Enable Pixelation*/
//#define PIXELATION
/*Set pixelation radius*/
static const int pixelSize=0;