diff options
| author | Dominik Bendle <fubenkyou@protonmail.ch> | 2019-01-29 16:10:16 +0100 |
|---|---|---|
| committer | Dominik Bendle <fubenkyou@protonmail.ch> | 2019-01-29 20:44:32 +0100 |
| commit | 40e9098a741b1a213b55cd6a400aa1c7eb4f47e8 (patch) | |
| tree | aefcf80e26de3c590bbedf53244e41e163b30916 /include | |
| parent | ecc8402c43262e7d92ffa238e4da609c174f55a0 (diff) | |
Add option show-failed-attempts
Keeps track of unsuccessful authentication attempts via an int counter
in the state struct. Displays on the unlock indicator, but will be
replaced by the Caps Lock text if enabled.
Diffstat (limited to 'include')
| -rw-r--r-- | include/swaylock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/swaylock.h b/include/swaylock.h index 56cee3b..f3ed374 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -50,6 +50,7 @@ struct swaylock_args { bool show_indicator; bool show_caps_lock_text; bool show_caps_lock_indicator; + bool show_failed_attempts; bool daemonize; }; @@ -73,6 +74,7 @@ struct swaylock_state { struct swaylock_password password; struct swaylock_xkb xkb; enum auth_state auth_state; + int failed_attempts; bool run_display; struct zxdg_output_manager_v1 *zxdg_output_manager; }; |
