summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-10-03 22:49:39 -0400
committerMatt Hunter <m@lfurio.us>2026-01-17 17:10:07 -0500
commit813a093e6c3c66b61020a4a855c83a236c4cdd7c (patch)
tree5ad0d9cd934551c6e0f20a3e0dbc229aa6292a65 /config.def.h
parentd4d464a866115430418f066e1d66cb701018304e (diff)
downloadslock-813a093e6c3c66b61020a4a855c83a236c4cdd7c.tar.gz
slock-813a093e6c3c66b61020a4a855c83a236c4cdd7c.zip
patch: control-clear
Adds an additional configuration parameter, controlkeyclear. When set to 1, slock will no longer change to the failure color if a control key is pressed while the buffer is empty. This is useful if, for example, you wake your monitor up by pressing a control key and don't want to spoil the detection of failed unlocking attempts.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 83e4887..3639e91 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,3 +11,6 @@ static const char *colorname[NUMCOLS] = {
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
+
+/* allow control key to trigger fail on clear */
+static const int controlkeyclear = 1;