mirror of https://github.com/tiyn/slock
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
750 B
28 lines
750 B
/* user and group to drop privileges to */
|
|
static const char *user = "nobody";
|
|
static const char *group = "nobody";
|
|
|
|
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;
|
|
|
|
/* struct for secret passwords and commands */
|
|
struct secretpass {
|
|
char const *pass;
|
|
char const *command;
|
|
};
|
|
|
|
/* list of secret passwords and their commands */
|
|
static const struct secretpass scom[1] = {
|
|
/* Password command */
|
|
{"shutdown", "sudo shutdown -h now"},
|
|
};
|
|
|
|
/* length of entries in scom */
|
|
static const int entrylen = 1;
|