mirror of https://github.com/i3/i3lock.git
Fixed behavior and updated manpage
parent
ff7ae95012
commit
0c4b74b297
10
i3lock.1
10
i3lock.1
|
@ -105,6 +105,16 @@ your computer with the enter key.
|
||||||
.B \-f, \-\-show-failed-attempts
|
.B \-f, \-\-show-failed-attempts
|
||||||
Show the number of failed attempts, if any.
|
Show the number of failed attempts, if any.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI \-x\ command \fR,\ \fB\-\-max\-failed\-attempts\-exec= command
|
||||||
|
Run a command, when the the maximum ammount of failed authentication
|
||||||
|
attempts (default 3; can be specified with \-m) is exceeded.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI \-m\ count \fR,\ \fB\-\-max\-failed\-attempts= count
|
||||||
|
Set the maximum ammount of failed authentication attempts.
|
||||||
|
Without \-x it will be useless.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-\-debug
|
.B \-\-debug
|
||||||
Enables debug logging.
|
Enables debug logging.
|
||||||
|
|
7
i3lock.c
7
i3lock.c
|
@ -82,9 +82,9 @@ extern auth_state_t auth_state;
|
||||||
int failed_attempts = 0;
|
int failed_attempts = 0;
|
||||||
bool show_failed_attempts = false;
|
bool show_failed_attempts = false;
|
||||||
bool retry_verification = false;
|
bool retry_verification = false;
|
||||||
int max_failed_attempts = 3;
|
static int max_failed_attempts = 3;
|
||||||
bool max_failed_attempts_enabled = false;
|
static bool max_failed_attempts_enabled = false;
|
||||||
char *max_failed_attempts_exec;
|
static char *max_failed_attempts_exec;
|
||||||
|
|
||||||
static struct xkb_state *xkb_state;
|
static struct xkb_state *xkb_state;
|
||||||
static struct xkb_context *xkb_context;
|
static struct xkb_context *xkb_context;
|
||||||
|
@ -376,6 +376,7 @@ static void input_done(void) {
|
||||||
system(max_failed_attempts_exec);
|
system(max_failed_attempts_exec);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
max_failed_attempts_enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue