diff options
author | Malfurious <m@lfurio.us> | 2021-10-03 22:49:39 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-06-01 21:24:09 -0400 |
commit | 80ba53531670f06b82a6592e878ed7e7a802b4e6 (patch) | |
tree | 79ec69ea3645c0123de1afcff25248b405cafb30 /config.def.h | |
parent | 505fe537796a38ea4a7023df0d938c0a2a43cc64 (diff) | |
download | slock-80ba53531670f06b82a6592e878ed7e7a802b4e6.tar.gz slock-80ba53531670f06b82a6592e878ed7e7a802b4e6.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.h | 3 |
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; |