Initial configuring

This commit is contained in:
Jarkko Toivanen 2024-08-22 18:00:26 +03:00
parent a34d8fb432
commit 54e961af6b
Signed by: jt
GPG key ID: 9151B109B73ECAD5
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.o
/slock

12
config.h Normal file
View file

@ -0,0 +1,12 @@
/* 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] = "#ffc000", /* during input */
[FAILED] = "#ff0000", /* wrong password */
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;