From 40e9098a741b1a213b55cd6a400aa1c7eb4f47e8 Mon Sep 17 00:00:00 2001 From: Dominik Bendle Date: Tue, 29 Jan 2019 16:10:16 +0100 Subject: 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. --- include/swaylock.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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; }; -- cgit v1.2.3