commit a3bd36ee3a89152b255383d5345257827e12535c
parent 4f045545a25cc02c64bfc08d27ed2ccecb962292
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun, 21 Jun 2020 15:42:45 +0200

Add personal configuration and gitignore

Diffstat:
A.gitignore | 2++
MLICENSE | 1+
Aconfig.h | 12++++++++++++
3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +*.o +slock diff --git a/LICENSE b/LICENSE @@ -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"), diff --git a/config.h b/config.h @@ -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;