~saurabhs/slock

Fix logo formatting
Add terminalkeys and dwmlogo patches

- Update user name and group
- Chnage dwm logo to cool looking arch logo
35633d45 — Tobias Stoeckmann 5 years ago
Properly clear the last entered character

When enter is pressed, passwd[len] will be set to '\0'. Pressing
backspace is supposed to remove the last entered character.

But currently, the clearing has an off-by-one, as in setting
passwd[len] to '\0' just like enter would do.

You can also verify it by imagining len=1 and that it's impossible to
clear passwd[0] by pressing backspace with the current code.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2d2a21a9 — Markus Teich 5 years ago
rm trailing whitespace in README
325581b9 — Markus Teich 5 years ago
syntax fix
0ff0d9f7 — Markus Teich 5 years ago
there can only be one window in the event
7a604ec1 — Bob Uhl 5 years ago
Fix resize with multiple monitors and portrait mode

When connecting/disconnecting a portrait monitor, the
XRRScreenChangeNotifyEvent height & width are reversed due to the XRandR
rotation; detect this and DTRT.
fa115895 — Markus Teich 5 years ago
bump version
d5da84cf — Markus Teich 5 years ago
add arg.h and util.h to Makefile
ae96836f — Markus Teich 5 years ago
clarify colors in config.def.h
7d31ff65 — Markus Teich 5 years ago
move config.h inclusion after type declarations
59746954 — Laslo Hunhold 5 years ago
Unboolify slock.c
c96e725d — FRIGN 5 years ago
Use explicit strcmp() instead of inlining it

Makes it a tad more readable; the previous "optimization" will be done
by the compiler anyway.
6a1bd896 — FRIGN 5 years ago
No need for oldc to be static
b099d2fd — FRIGN 5 years ago
Use NUL character constant explicitly
0a43b78d — FRIGN 5 years ago
Keep the line-lengths at bay

This makes the code more readable and prevents wraparounds in the
editor.
bd069b08 — FRIGN 5 years ago
Add a section on security considerations

The section on security considerations sheds some light on the problems that we
can't solve within slock but which the user has to solve in his X configuration.
2d85c5ba — Markus Teich 5 years ago
remove confusing DPMS comment

FRIGN on hackers@suckless.org:
What has been bugging me for quite a while is this DPMS comment that was added
there for no reason. Every sane mind would agree that fiddling with DPMS makes
no sense whatsoever. When I slock, my screen turns off after 10 minutes. So, if
I don't like that, I disable DPMS. If I do, I just fiddle around with my mouse a
bit and get the slock promt.
a98fba89 — Markus Teich 5 years ago
error out early on crypt() fail
dc2e8e83 — FRIGN 5 years ago
Stop using $USER for shadow entries

This was extremely bad practice, effectively making the program behave
different depending on which architecture you are running it on.

OpenBSD offers getpwuid_shadow, but there is no getspuid for getspnam,
so we resort to using the pw_name entry in the struct passwd we filled
earlier.

This prevents slock from crashing when $USER is empty (easy to do). If
you want to run slock as a different user, don't use

	$ USER="tom" slock

but doas or sudo which were designed for this purpose.
Next