i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 62fac878328bc3c30a216e425c354f77d108c290
parent 82ca387e5ac9818ce45fbe34afe3fc829a3e0325
Author: Martin Dørum <martid0311@gmail.com>
Date:   Thu, 30 May 2019 18:07:04 +0200

Add back 'l' switch

Diffstat:
Mi3lock.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -1533,6 +1533,13 @@ int main(int argc, char *argv[]) {
             case 'f':
                 show_failed_attempts = true;
                 break;
+            case 'l':
+#if defined(__linux__)
+                lock_tty_switching = true;
+#else
+                errx(EXIT_FAILURE, "TTY switch locking is only supported on Linux.");
+#endif
+                break;
             case 'r':
                 if (internal_line_source != 0) {
                   errx(EXIT_FAILURE, "i3lock-color: Options line-uses-ring and line-uses-inside conflict.");