~ob/slock

b3163114230810f49105ee1014c9a6e330f7f7bf — Oscar Benedito 2 years ago 35633d4
Add personal configuration and gitignore
3 files changed, 15 insertions(+), 0 deletions(-)

A .gitignore
M LICENSE
A config.h
A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
*.o
slock

M LICENSE => LICENSE +1 -0
@@ 4,6 4,7 @@ MIT/X Consortium License
© 2014 Dimitris Papastamos <sin@2f30.org>
© 2006-2014 Anselm R Garbe <anselm@garbe.us>
© 2014-2016 Laslo Hunhold <dev@frign.de>
© 2020 Oscar Benedito <oscar@oscarbenedito.com>

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),

A config.h => config.h +12 -0
@@ 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] =   "#000000",   /* after initialization */
	[INPUT] =  "#285577",   /* during input */
	[FAILED] = "#cc3333",   /* wrong password */
};

/* treat a cleared input like a wrong password (color) */
static const int failonclear = 0;