Commit Graph

332 Commits (3216c40504b7c65f5877ef798b5ea41db28f2ab6)

Author SHA1 Message Date
Martin Stiborsky 7d52029ae3 removed the whoami function, replaced with an inline getpwuid call 2015-01-05 19:54:48 +01:00
Martin Stiborsky a3839aa69f getting current user with whoami like function rather than from env variable 2015-01-05 11:46:11 +01:00
Michael Stapelberg ec9a5f638b Merge pull request #1 from koebi/master
added debug-flag to manpage
2014-12-27 22:21:33 +01:00
koebi 04859823ca debugging outputs the password, so the manpage should mention that 2014-12-27 22:19:07 +01:00
koebi 9fa9802b26 added debug-flag to manpage 2014-12-27 21:54:41 +01:00
Michael Stapelberg 1dce3ad1c8 README is actually in markdown, so tell github that 2014-12-26 21:03:12 +01:00
Michael Stapelberg 7af3d0b7e4 make github the canonical i3lock repository 2014-12-26 21:02:58 +01:00
Neodyblue 8a630bec65 Ignore password validation is pam is in wrong state
This add a protection against wrong password spamming
2014-10-13 17:53:49 +02:00
koebi 0cbf483cb4 implemented logging the number of failed attempts
This closes #1243
2014-08-24 23:27:00 +02:00
Michael Stapelberg 7f450a52f6 Die when the X11 connection breaks during runtime (Thanks Eduan) 2014-08-21 09:34:03 +02:00
Michael Stapelberg 7bb152664f update the changelog/readme for 2.6 2014-07-18 20:24:53 +02:00
Michael Stapelberg 4724d4abf0 remove obsolete xkb_state_update_key() calls (Thanks Ran) 2014-06-21 16:32:18 +02:00
Michael Stapelberg 1b89709ae7 listen for XKB events instead of the MappingNotify event (Thanks Ran) 2014-06-21 16:32:18 +02:00
Michael Stapelberg 7eb43aeabd little cleanups thanks to Ran Benita’s review 2014-06-21 16:32:18 +02:00
Michael Stapelberg 0beb9a47b1 use libxkbcommon-x11 instead of libX11 2014-06-21 16:32:18 +02:00
Michael Stapelberg 6191590e5c Scale the unlock indicator (for retina displays) 2014-05-02 19:57:22 +02:00
Vytautas Šaltenis e2dd1543e9 Cleanup scattered timer calls to use macros 2014-03-23 18:56:00 +01:00
Vytautas Šaltenis 4ff1d7fc5c 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.
2014-03-23 10:07:03 +01:00
Vytautas Šaltenis 178b858116 Fix typo in manual 2014-03-23 10:02:16 +01:00
Vytautas Šaltenis e5f86339bc Fix typo 2014-03-23 10:02:10 +01:00
Vytautas Šaltenis 52541fb7ee 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.
2014-03-23 10:01:59 +01:00
Vytautas Šaltenis c7cd4cd3b5 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.
2014-03-23 09:32:44 +01:00
TheKK 15ddf304be Replace '1' with "EXIT_FAILURE" 2014-03-16 16:25:15 +01:00
Vytautas Šaltenis 2509c987d1 Extract start/stop timer code to reusable funcs 2014-03-11 09:11:20 +01:00
Vytautas Šaltenis d91fdc368e Extract if(dpms) calls to wrapper functions 2014-03-11 09:09:02 +01:00
Philippe Virouleau 6c34f6aa40 Turn on the screen on successful authentication
As described in ticket #1114, the screen may be left turned off on successful
authentication. This commit fixes this behaviour by turning the screen back on
after the authentication.

Fixes #1114
2013-11-12 08:24:14 +01:00
Michael Stapelberg ac8bbad523 Re-raise i3lock when obscured in a separate process
This is cleaner than commit a305e62 (running authentication in a
separate process) because we don’t lose the feature that X11 will buffer
KeyPresses for us while the process blocks on PAM. See
http://cr.i3wm.org/patch/305 for the amount of code (and new known bugs)
that would have to be introduced to make a305e62 work.
2013-11-10 20:43:08 +01:00
Michael Stapelberg d7fd058f0c Revert "Run authentification in different process"
This reverts commit a305e622a6.

In the next commit, the same functionality will be achieved in a cleaner
way.
2013-11-10 20:42:53 +01:00
Michael Stapelberg df760b6e9e Revert "Bug fix: Call clear_input() when the password is wrong."
This reverts commit 33d953fbdf,
in preparation for reverting commit a305e62
2013-11-10 20:42:39 +01:00
oblique 33d953fbdf Bug fix: Call clear_input() when the password is wrong.
clear_input() calls start_clear_indicator_timeout() to clear the
indicator after 1 second. This had as a result the screen to be cleared
when the "verifying…" message was showed, so the "wrong!" message didn't
show up when the password was wrong.

First bad commit: a305e62
2013-10-20 22:34:22 +02:00
koebi a305e622a6 Run authentification in different process
When having i3bar in “hide” mode, it could previously be brought up
while the authentication was running. This is not 100% fixed with this
change, but a lot better, as the normal “raise i3lock to the top”
behavior is not blocked now anymore.

fixes #895
2013-09-19 06:18:41 +02:00
Vincent Bernat 94c9274bd3 Small improvements to manual page.
Use a bulleted list for the IMPROVEMENTS section. Fix some
grammar. Remove the use of "fuck" which may offend some people.
2013-09-09 04:34:16 +02:00
Michael Stapelberg 2f17b73e20 Bugfix: update the initial keyboard modifier state (Thanks lee, Ran)
This should make the numpad work correctly.
2013-09-01 10:01:38 +02:00
Michael Stapelberg ad47d80e22 Add -e to --help 2013-08-31 20:42:06 +02:00
Vincent Bernat 5627a11174 Add `-e` option to not validate empty password.
When the XF86ScreenSaver key is used to put a laptop to sleep (or to
trigger the screensaver), the key may "bounce" on resume. This is
annoying as i3lock will try to validate several empty passwords and
wait several seconds before accepting a legit password.

Some users may want to validate an empty password: PAM may rely on
other sources to unlock the screen, like the presence of a token or
the proximity of some Bluetooth device. Hence, we don't forbid this
possibility and provide an command-line option for users not willing
to validate empty passwords.
2013-08-31 20:41:12 +02:00
Bas Pape 3e136769be Use cairo_status_to_string for descriptive errors. 2013-07-30 20:08:21 +02:00
Michael Stapelberg a72e0de842 add xcb-atom to pkg-config calls 2013-06-09 11:48:39 +02:00
Michael Stapelberg 712fed5cf2 update changelog for 2.5 2013-06-09 11:41:33 +02:00
Axel Wagner e69b98561b Set window name 2013-04-11 22:54:48 +02:00
Sebastian Ullrich e0213cb1f5 Fix centering the indicator in the no-xinerama case 2013-03-29 10:14:01 +01:00
Michael Stapelberg d4d589a7dd fix ctrl-u handling 2013-03-29 10:13:01 +01:00
Sebastian Ullrich 1495903e5d Fix resetting the password after failed authentications
This has been broken by commit 661344.
2013-03-29 10:02:35 +01:00
Philip Dexter 661344463a Add ctrl+u password reset 2013-03-24 14:30:07 +01:00
Baptiste Daroussin d8a1da69fb Use ev_loop_fork after fork, this fix forking on kqueue based OSes 2013-03-20 21:28:14 +01:00
Michael Stapelberg 006f9d3d7d README: refer to cr.i3wm.org for patches 2013-02-10 15:18:54 +01:00
Quentin Glidic b1a6e2ebe3 Limit the debug print to the actual password size
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2013-02-07 17:15:16 +01:00
Vivien Didelot 2c9e46dfee RGB color notation is 3-byte hexadecimal
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
2012-12-06 09:40:23 +01:00
Moritz Augsburger d6b9e33e28 Allow passwordless PAM conversations (e.g. fingerprint) 2012-11-04 19:01:52 +01:00
Moritz Augsburger e84a1203a6 Allow XKB_KEY_XF86ScreenSaver as synonm for enter
This keysym is generated on convertible tablets by pressing a hardware
lock/unlock button.
2012-11-04 19:01:48 +01:00
Michael Stapelberg fba88476dd remove support for NOLIBCAIRO, cairo-xcb is widespread by now 2012-10-26 20:42:26 +02:00