]> git.sur5r.net Git - i3/i3lock/log
i3/i3lock
7 years agoUse RandR for learning about attached monitors
Michael Stapelberg [Sat, 18 Nov 2017 09:44:58 +0000 (10:44 +0100)]
Use RandR for learning about attached monitors

The code now tries the following options, in order:

• obtain monitors via RandR 1.5
• obtain outputs via RandR ≤ 1.4
• obtain screens via Xinerama

fixes #159
related to #101
related to #148
related to #149

7 years agoSetInputFocus to the i3lock window to force-close context menus (#155)
Michael Stapelberg [Sun, 22 Oct 2017 20:16:34 +0000 (22:16 +0200)]
SetInputFocus to the i3lock window to force-close context menus (#155)

When grabbing the pointer/keyboard fails, a new code path is activated, which:

1. Uses the standards-compliant _NET_ACTIVE_WINDOW root window property to
   determine the window to restore focus to.

2. Sets the input focus to the i3lock window, thereby possibly force-closing
   open context menus (works with e.g. Google Chrome, does not work with
   e.g. thunar, gedit).

3. Upon exiting, restores focus to the window from step ① by sending a
   _NET_ACTIVE_WINDOW ClientMessage to the root window. Note that this step
   requires https://github.com/i3/i3/pull/3027 in i3 to not mess up focus.

fixes https://github.com/i3/i3lock/issues/35

7 years agoMeasure wall-clock time instead of CPU time for “locking” indicator. (#153)
Michael Stapelberg [Sat, 21 Oct 2017 22:32:57 +0000 (00:32 +0200)]
Measure wall-clock time instead of CPU time for “locking” indicator. (#153)

related to https://github.com/i3/i3lock/issues/35

7 years agotravis: wily is gone, so take libxkbcommon ≥ 0.5.0 from xenial (#154)
Michael Stapelberg [Sat, 21 Oct 2017 22:22:10 +0000 (00:22 +0200)]
travis: wily is gone, so take libxkbcommon ≥ 0.5.0 from xenial (#154)

7 years agoImmediately hide the unlock indicator after ESC / C-u (#145)
Orestis [Sat, 21 Oct 2017 21:15:15 +0000 (00:15 +0300)]
Immediately hide the unlock indicator after ESC / C-u (#145)

7 years agoMerge pull request #135 from grandchild/fix_optind_overwrite
Ingo Bürk [Sun, 13 Aug 2017 15:26:38 +0000 (17:26 +0200)]
Merge pull request #135 from grandchild/fix_optind_overwrite

Fix shadowing of getopt optind

7 years agoMerge pull request #140 from bluetech/fix-locale-discovery
Ingo Bürk [Sun, 13 Aug 2017 15:25:25 +0000 (17:25 +0200)]
Merge pull request #140 from bluetech/fix-locale-discovery

Change the locale discovery procedure to treat empty string same as unset

7 years agoChange the locale discovery procedure to treat empty string same as unset 140/head
Ran Benita [Sun, 13 Aug 2017 15:06:04 +0000 (18:06 +0300)]
Change the locale discovery procedure to treat empty string same as unset

This is explained in the commit message here:
https://github.com/xkbcommon/libxkbcommon/commit/f468f0b2430e15cc262c5745445580bd0dc64ef0

7 years agoMerge pull request #136 from kaashif/openbsd-no-pam
Ingo Bürk [Mon, 10 Jul 2017 11:16:16 +0000 (13:16 +0200)]
Merge pull request #136 from kaashif/openbsd-no-pam

Only use -lpam when not on OpenBSD

7 years agoOnly use -lpam when not on OpenBSD 136/head
Kaashif Hymabaccus [Sun, 9 Jul 2017 16:52:32 +0000 (17:52 +0100)]
Only use -lpam when not on OpenBSD

7 years agoFix overwrite of getopt optind 135/head
jakob [Thu, 6 Jul 2017 14:52:32 +0000 (16:52 +0200)]
Fix overwrite of getopt optind

Using 'optind' in getopt_long() shadows actual 'optind' being provided
by getopt, thus prevents any future options change from using optind.

See https://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html#index-getopt_005flong

7 years agoupdate CHANGELOG and I3LOCK_VERSION 2.9.1
Michael Stapelberg [Wed, 21 Jun 2017 16:18:05 +0000 (18:18 +0200)]
update CHANGELOG and I3LOCK_VERSION

7 years agoRevert "Fix covering of composited notifications (#96)" (#133)
Ingo Bürk [Tue, 20 Jun 2017 07:53:42 +0000 (09:53 +0200)]
Revert "Fix covering of composited notifications (#96)" (#133)

This reverts commit 80d4452ec680bcb0e57418f69d44d88ded82047c.

fixes #130

7 years agoMerge pull request #132 from stapelberg/fix-version
Ingo Bürk [Sun, 18 Jun 2017 16:32:46 +0000 (18:32 +0200)]
Merge pull request #132 from stapelberg/fix-version

Fix version

7 years agoMakefile: fix I3LOCK_VERSION replacement 132/head
Michael Stapelberg [Sun, 18 Jun 2017 15:56:05 +0000 (17:56 +0200)]
Makefile: fix I3LOCK_VERSION replacement

fixes #129

7 years agoupdate I3LOCK_VERSION (forgotten at release time)
Michael Stapelberg [Sun, 18 Jun 2017 15:55:56 +0000 (17:55 +0200)]
update I3LOCK_VERSION (forgotten at release time)

7 years agoupdate CHANGELOG 2.9
Michael Stapelberg [Fri, 26 May 2017 07:49:34 +0000 (09:49 +0200)]
update CHANGELOG

7 years agoMerge pull request #125 from jasperla/mlock
Ingo Bürk [Sat, 6 May 2017 10:25:11 +0000 (12:25 +0200)]
Merge pull request #125 from jasperla/mlock

Restore intended behaviour and don't use mlock(2) on OpenBSD.

7 years agoRestore intended behaviour and don't use mlock(2) on OpenBSD. 125/head
Jasper Lievisse Adriaanse [Mon, 17 Apr 2017 19:06:19 +0000 (21:06 +0200)]
Restore intended behaviour and don't use mlock(2) on OpenBSD.

7 years agoMerge pull request #123 from jasperla/bsdauth
Michael Stapelberg [Mon, 17 Apr 2017 15:00:39 +0000 (17:00 +0200)]
Merge pull request #123 from jasperla/bsdauth

Add support for bsd_auth(3) as authentication backend

7 years agoUse bsd_auth(3) instead of PAM on OpenBSD 123/head
Jasper Lievisse Adriaanse [Sat, 15 Apr 2017 12:41:32 +0000 (14:41 +0200)]
Use bsd_auth(3) instead of PAM on OpenBSD

Also apply two security measures for OpenBSD:
- use explicit_bzero(3)
- mlock(2) works for non-root users too

7 years agoMove all PAM code behind UES_PAM and enable that by default.
Jasper Lievisse Adriaanse [Sat, 15 Apr 2017 07:45:51 +0000 (09:45 +0200)]
Move all PAM code behind UES_PAM and enable that by default.

7 years agoRename all PAM-independant variables/comments.
Jasper Lievisse Adriaanse [Sat, 15 Apr 2017 07:39:13 +0000 (09:39 +0200)]
Rename all PAM-independant variables/comments.

there is nothing PAM-specific about pam_state or pam_state_t. therefore
rename them to be authenticator independant.

7 years agoMerge pull request #122 from jasperla/dpms
Ingo Bürk [Sat, 15 Apr 2017 01:56:24 +0000 (03:56 +0200)]
Merge pull request #122 from jasperla/dpms

Remove last traces of DPMS

7 years agoRemove last traces of DPMS 122/head
Jasper Lievisse Adriaanse [Fri, 14 Apr 2017 18:00:23 +0000 (20:00 +0200)]
Remove last traces of DPMS

7 years agoFix covering of composited notifications (#96)
martin [Sun, 26 Mar 2017 13:01:23 +0000 (15:01 +0200)]
Fix covering of composited notifications (#96)

Use the XComposite extension to get the composite overlay window,
instead of just using the normal root window. This ensures that
composited windows are covered.

7 years agoChange input slices to be exactly pi/3 in size instead of slightly more (#107)
Bownairo [Tue, 10 Jan 2017 08:01:19 +0000 (03:01 -0500)]
Change input slices to be exactly pi/3 in size instead of slightly more (#107)

8 years agoAdd Enter on C-m (#103)
Nicolò Balzarotti [Wed, 9 Nov 2016 21:23:01 +0000 (22:23 +0100)]
Add Enter on C-m (#103)

8 years agoDisplay error message when locking failed (#99)
eplanet [Tue, 11 Oct 2016 20:40:51 +0000 (22:40 +0200)]
Display error message when locking failed (#99)

To give a feedback for when the pointer couldn't be grabbed,
displaying an error message before exiting.

8 years agoDisplaying locking message when grabbing the pointer/keyboard. (#88)
eplanet [Wed, 28 Sep 2016 01:39:52 +0000 (03:39 +0200)]
Displaying locking message when grabbing the pointer/keyboard. (#88)

Display "locking…" message when grabbing the pointer/keyboard,
after at least 250 ms of unfruitful attempts. If grabbing
eventually fails, application will not fork and return 1.

8 years agoi3lock: Stop leaking the image_path dup. (#93)
Diogo Ferreira [Tue, 13 Sep 2016 19:59:54 +0000 (20:59 +0100)]
i3lock: Stop leaking the image_path dup. (#93)

8 years agounlock automatically after authentication failure (#90)
koebi [Sun, 4 Sep 2016 16:22:49 +0000 (18:22 +0200)]
unlock automatically after authentication failure (#90)

This will make i3 unlock automatically after authentication failure and
correct input without pressing <Enter> again after the "wrong"-indicator
is gone.

8 years agoSet font face (#89)
Vasilij Schneidermann [Thu, 18 Aug 2016 18:53:19 +0000 (20:53 +0200)]
Set font face (#89)

8 years agoAdded version files for release tarball. Fixes #40 (#86)
eplanet [Sat, 13 Aug 2016 20:46:35 +0000 (22:46 +0200)]
Added version files for release tarball. Fixes #40 (#86)

8 years agoRemoved obsolete inactivity timeout (#84)
Florian Zipperle [Wed, 20 Jul 2016 06:50:07 +0000 (08:50 +0200)]
Removed obsolete inactivity timeout (#84)

* Removed obsolete inactivity timeout

8 years agoi3lock.1: use signal names without SIG prefix (Thanks rodfersou)
Michael Stapelberg [Mon, 20 Jun 2016 17:46:38 +0000 (19:46 +0200)]
i3lock.1: use signal names without SIG prefix (Thanks rodfersou)

see #32

8 years agoupdate CHANGELOG 2.8
Michael Stapelberg [Sat, 4 Jun 2016 17:26:57 +0000 (19:26 +0200)]
update CHANGELOG

8 years agoclang-format-3.5
Michael Stapelberg [Fri, 3 Jun 2016 15:46:29 +0000 (17:46 +0200)]
clang-format-3.5

Not sure why travis didn’t warn about this on the PR. The only reference
to the PR I can find is https://travis-ci.org/i3/i3lock/builds/130470377

8 years agoadd CONTRIBUTING.md
Michael Stapelberg [Fri, 3 Jun 2016 15:28:43 +0000 (17:28 +0200)]
add CONTRIBUTING.md

…so that people know we don’t want to extend i3lock’s image handling.

related to #81, #68, #31

8 years agoAdd support for `xss-lock --transfer-sleep-lock' (#75)
Christoph Ruegge [Wed, 25 May 2016 20:21:12 +0000 (22:21 +0200)]
Add support for `xss-lock --transfer-sleep-lock' (#75)

Add support for `xss-lock --transfer-sleep-lock'

8 years agoFlush xcb connection after opening fullscreen window (#74)
martin [Wed, 25 May 2016 20:19:17 +0000 (22:19 +0200)]
Flush xcb connection after opening fullscreen window (#74)

We need to ensure that the window handle is valid, i. e. the window is
actually created and accessible, before returning.

This is necessary because we immediately fork after returning, and the
child process opens its own X11 connection and expects the window handle
to be valid.

Fixes #46

8 years agoAllow CTRL+J as enter and CTRL+H as backspace (#72)
Karl Tarbe [Sat, 30 Apr 2016 10:25:51 +0000 (13:25 +0300)]
Allow CTRL+J as enter and CTRL+H as backspace (#72)

fixes #71

8 years agoShow unlock indicator if password was entered during PAM verification
Michael Stapelberg [Fri, 25 Dec 2015 21:10:06 +0000 (22:10 +0100)]
Show unlock indicator if password was entered during PAM verification

fixes #51

8 years agoEat XKB_KEY_Delete and XKB_KEY_KP_Delete (Thanks bebehei)
Michael Stapelberg [Fri, 25 Dec 2015 14:44:46 +0000 (15:44 +0100)]
Eat XKB_KEY_Delete and XKB_KEY_KP_Delete (Thanks bebehei)

fixes #50

9 years agoRemove libxkbfile dependency from README.md/comments
Michael Stapelberg [Sat, 7 Nov 2015 13:51:02 +0000 (14:51 +0100)]
Remove libxkbfile dependency from README.md/comments

It has not been in use since commit 7eb43aeabd7a5eb71927520c427debb45eab05f2

9 years agouse trusty, install libxkbcommon-dev from wily
Michael Stapelberg [Fri, 6 Nov 2015 08:01:49 +0000 (09:01 +0100)]
use trusty, install libxkbcommon-dev from wily

9 years agotravis: install clang-format-3.5 from llvm repository
Michael Stapelberg [Fri, 6 Nov 2015 07:52:48 +0000 (08:52 +0100)]
travis: install clang-format-3.5 from llvm repository

Ubuntu utopic disappeared from archive.ubuntu.com, it’s EOL.

9 years agofix pam_securetty: set PAM_TTY to getenv("DISPLAY")
Michael Stapelberg [Thu, 5 Nov 2015 22:22:08 +0000 (23:22 +0100)]
fix pam_securetty: set PAM_TTY to getenv("DISPLAY")

fixes #43

9 years agoRemove DPMS support in favor of a wrapper script and xset(1).
Michael Stapelberg [Tue, 11 Aug 2015 19:50:42 +0000 (21:50 +0200)]
Remove DPMS support in favor of a wrapper script and xset(1).

fixes #32

9 years agoMerge pull request #24 from ixjlyons/timeout-doc
Michael Stapelberg [Fri, 3 Jul 2015 06:30:44 +0000 (23:30 -0700)]
Merge pull request #24 from ixjlyons/timeout-doc

Indicate that the --inactivity-timeout option takes an argument.

9 years agoIndicate that the --inactivity-timeout option takes an argument. 24/head
Kenneth Lyons [Thu, 2 Jul 2015 21:44:06 +0000 (14:44 -0700)]
Indicate that the --inactivity-timeout option takes an argument.

9 years agoupdate CHANGELOG 2.7
Michael Stapelberg [Wed, 20 May 2015 07:14:39 +0000 (09:14 +0200)]
update CHANGELOG

9 years agomakefile: s/README/README.md/
Michael Stapelberg [Wed, 20 May 2015 07:00:19 +0000 (09:00 +0200)]
makefile: s/README/README.md/

9 years agoMerge pull request #14 from ony/master
Michael Stapelberg [Mon, 27 Apr 2015 16:44:57 +0000 (09:44 -0700)]
Merge pull request #14 from ony/master

Make pkg-config configurable

9 years agoMake pkg-config configurable 14/head
Nikolay Orlyuk [Sun, 26 Apr 2015 18:57:47 +0000 (21:57 +0300)]
Make pkg-config configurable

9 years agoMerge pull request #13 from Airblader/feature-12
Michael Stapelberg [Fri, 24 Apr 2015 22:27:06 +0000 (00:27 +0200)]
Merge pull request #13 from Airblader/feature-12

Only redraw the screen if the unlock indicator is actually used.

9 years agoOnly redraw the screen if the unlock indicator is actually used. 13/head
Ingo Bürk [Fri, 24 Apr 2015 21:36:24 +0000 (23:36 +0200)]
Only redraw the screen if the unlock indicator is actually used.

fixes #12

9 years agoMerge pull request #11 from Deiz/update-notices
Michael Stapelberg [Tue, 21 Apr 2015 20:51:58 +0000 (22:51 +0200)]
Merge pull request #11 from Deiz/update-notices

Update copyright notices and get rid of ranges

9 years agoUpdate copyright notices and get rid of ranges 11/head
Deiz [Tue, 21 Apr 2015 15:47:51 +0000 (11:47 -0400)]
Update copyright notices and get rid of ranges

The script used to make these changes can be found at:

   https://gist.github.com/Deiz/32322020f76d23e2bf8f

9 years agoMerge pull request #10 from Deiz/modifiers
Michael Stapelberg [Sun, 29 Mar 2015 20:59:39 +0000 (22:59 +0200)]
Merge pull request #10 from Deiz/modifiers

List generic pressed modifiers on failure

9 years agoList generic pressed modifiers on failure 10/head
Deiz [Thu, 26 Mar 2015 07:06:18 +0000 (03:06 -0400)]
List generic pressed modifiers on failure

9 years agoAdd capslock and numlock indicators
Alexandre Boeglin [Wed, 11 Feb 2015 19:52:07 +0000 (20:52 +0100)]
Add capslock and numlock indicators

When the unlock indicator warns the user that a password was typed
wrong, it now also reports the state of the capslock and numlock
modifiers.

Signed-off-by: Alexandre Boeglin <alex@boeglin.org>
9 years agoMerge pull request #9 from qfire/master
Michael Stapelberg [Fri, 27 Mar 2015 07:31:58 +0000 (08:31 +0100)]
Merge pull request #9 from qfire/master

refresh pam credentials on successful authentication

9 years agorefresh pam credentials on successful authentication 9/head
James Cassidy [Thu, 26 Mar 2015 13:26:48 +0000 (09:26 -0400)]
refresh pam credentials on successful authentication

9 years agodisable clang temporarily
Michael Stapelberg [Tue, 17 Mar 2015 08:00:15 +0000 (09:00 +0100)]
disable clang temporarily

9 years agocommit missing .clang-format
Michael Stapelberg [Tue, 17 Mar 2015 07:50:50 +0000 (08:50 +0100)]
commit missing .clang-format

9 years agoadd travis config
Michael Stapelberg [Tue, 17 Mar 2015 07:42:49 +0000 (08:42 +0100)]
add travis config

9 years agoclang-format -i **/*.[ch]
Michael Stapelberg [Mon, 16 Mar 2015 17:47:16 +0000 (18:47 +0100)]
clang-format -i **/*.[ch]

From here on, we’ll use clang-format to automatically format the source.

This has worked well in i3, so we are introducing it for i3lock.

9 years agoMerge pull request #6 from danielotero/master
Michael Stapelberg [Thu, 12 Feb 2015 22:08:35 +0000 (23:08 +0100)]
Merge pull request #6 from danielotero/master

Add support for Compose and dead-keys with libxkbcommon

9 years agoUpdate the key symbol if the composing ends. 6/head
Daniel Otero [Thu, 12 Feb 2015 20:38:37 +0000 (21:38 +0100)]
Update the key symbol if the composing ends.

9 years agoAvoid handle a keysym if the compose state gets cancelled
Daniel Otero [Thu, 12 Feb 2015 10:22:58 +0000 (11:22 +0100)]
Avoid handle a keysym if the compose state gets cancelled

This is the approach taken by libX11, and feels more consistent.

9 years agoRemove xkb_context initialization code from load_compose_table
Daniel Otero [Thu, 12 Feb 2015 10:12:38 +0000 (11:12 +0100)]
Remove xkb_context initialization code from load_compose_table

xkb_context is guaranteed to be initializated from load_keymap.

9 years agoAdd support for Compose and dead-keys with libxkbcommon
Daniel Otero [Wed, 11 Feb 2015 23:37:23 +0000 (00:37 +0100)]
Add support for Compose and dead-keys with libxkbcommon

9 years agoMerge pull request #3 from stibi/whoami
Michael Stapelberg [Tue, 6 Jan 2015 07:34:35 +0000 (08:34 +0100)]
Merge pull request #3 from stibi/whoami

getting current user with whoami like function rather than from env variable

9 years agogetpwuid call moved 3/head
Martin Stiborsky [Mon, 5 Jan 2015 23:02:23 +0000 (00:02 +0100)]
getpwuid call moved

9 years agonull check for getpwuid and pw_name
Martin Stiborsky [Mon, 5 Jan 2015 21:54:32 +0000 (22:54 +0100)]
null check for getpwuid and pw_name

9 years agoremoved the whoami function, replaced with an inline getpwuid call
Martin Stiborsky [Mon, 5 Jan 2015 18:54:48 +0000 (19:54 +0100)]
removed the whoami function, replaced with an inline getpwuid call

9 years agogetting current user with whoami like function rather than from env variable
Martin Stiborsky [Mon, 5 Jan 2015 10:46:11 +0000 (11:46 +0100)]
getting current user with whoami like function rather than from env variable

9 years agoMerge pull request #1 from koebi/master
Michael Stapelberg [Sat, 27 Dec 2014 21:21:33 +0000 (22:21 +0100)]
Merge pull request #1 from koebi/master

added debug-flag to manpage

9 years agodebugging outputs the password, so the manpage should mention that 1/head
koebi [Sat, 27 Dec 2014 21:19:07 +0000 (22:19 +0100)]
debugging outputs the password, so the manpage should mention that

9 years agoadded debug-flag to manpage
koebi [Sat, 27 Dec 2014 20:54:41 +0000 (21:54 +0100)]
added debug-flag to manpage

9 years agoREADME is actually in markdown, so tell github that
Michael Stapelberg [Fri, 26 Dec 2014 20:03:12 +0000 (21:03 +0100)]
README is actually in markdown, so tell github that

9 years agomake github the canonical i3lock repository
Michael Stapelberg [Fri, 26 Dec 2014 20:02:58 +0000 (21:02 +0100)]
make github the canonical i3lock repository

10 years agoIgnore password validation is pam is in wrong state
Neodyblue [Mon, 13 Oct 2014 10:39:13 +0000 (11:39 +0100)]
Ignore password validation is pam is in wrong state

This add a protection against wrong password spamming

10 years agoimplemented logging the number of failed attempts
koebi [Thu, 24 Jul 2014 20:32:07 +0000 (22:32 +0200)]
implemented logging the number of failed attempts

This closes #1243

10 years agoDie when the X11 connection breaks during runtime (Thanks Eduan)
Michael Stapelberg [Thu, 21 Aug 2014 07:34:03 +0000 (09:34 +0200)]
Die when the X11 connection breaks during runtime (Thanks Eduan)

10 years agoupdate the changelog/readme for 2.6 2.6
Michael Stapelberg [Fri, 18 Jul 2014 18:21:09 +0000 (20:21 +0200)]
update the changelog/readme for 2.6

10 years agoremove obsolete xkb_state_update_key() calls (Thanks Ran)
Michael Stapelberg [Sat, 18 Jan 2014 20:12:59 +0000 (21:12 +0100)]
remove obsolete xkb_state_update_key() calls (Thanks Ran)

10 years agolisten for XKB events instead of the MappingNotify event (Thanks Ran)
Michael Stapelberg [Sat, 18 Jan 2014 18:40:11 +0000 (19:40 +0100)]
listen for XKB events instead of the MappingNotify event (Thanks Ran)

10 years agolittle cleanups thanks to Ran Benita’s review
Michael Stapelberg [Sat, 18 Jan 2014 18:20:58 +0000 (19:20 +0100)]
little cleanups thanks to Ran Benita’s review

10 years agouse libxkbcommon-x11 instead of libX11
Michael Stapelberg [Sat, 18 Jan 2014 16:13:59 +0000 (17:13 +0100)]
use libxkbcommon-x11 instead of libX11

10 years agoScale the unlock indicator (for retina displays)
Michael Stapelberg [Fri, 2 May 2014 17:57:22 +0000 (19:57 +0200)]
Scale the unlock indicator (for retina displays)

10 years agoCleanup scattered timer calls to use macros
Vytautas Šaltenis [Sun, 23 Mar 2014 17:14:09 +0000 (19:14 +0200)]
Cleanup scattered timer calls to use macros

10 years agoIgnore empty passwd after repeated Enter keypress
Vytautas Šaltenis [Mon, 10 Mar 2014 20:02:27 +0000 (22:02 +0200)]
Ignore empty passwd after repeated Enter keypress

When no ignore_empty_password flag is specified, but Enter key is held
down for some time, i3lock enters a finite, but hours-long loop
verifying empty password. Don't do that, skip empty password
verification if nothing was pressed after last Enter keypress.

Again, making the software cat-proof.

10 years agoFix typo in manual
Vytautas Šaltenis [Tue, 18 Mar 2014 20:40:17 +0000 (22:40 +0200)]
Fix typo in manual

10 years agoFix typo
Vytautas Šaltenis [Thu, 6 Mar 2014 21:16:43 +0000 (23:16 +0200)]
Fix typo

10 years agoDiscard half-entered passwd after some inactivity
Vytautas Šaltenis [Thu, 6 Mar 2014 21:06:28 +0000 (23:06 +0200)]
Discard half-entered passwd after some inactivity

When you start typing a password and then wander off, let's discard that
attempt after a few minutes of inactivity (and turn off the monitors if
dpms is on).

This is a real actual case of making the software cat-proof: when my cat
treads over the keyboard at night, I don't want the monitors to shine
for the rest of the night.

10 years agoDelay to turn off the screen after wrong passwd
Vytautas Šaltenis [Thu, 6 Mar 2014 20:55:37 +0000 (22:55 +0200)]
Delay to turn off the screen after wrong passwd

Also add flag for number of seconds to wait for it.

When user cancels the password or enters a wrong one, i3lock will wait
for some time before putting the monitors back to sleep. By default it's
30 seconds, but this flag allows to control that.

10 years agoReplace '1' with "EXIT_FAILURE"
TheKK [Sun, 16 Mar 2014 13:54:42 +0000 (21:54 +0800)]
Replace '1' with "EXIT_FAILURE"

10 years agoExtract start/stop timer code to reusable funcs
Vytautas Šaltenis [Thu, 6 Mar 2014 20:22:02 +0000 (22:22 +0200)]
Extract start/stop timer code to reusable funcs