~kris/suckless

slock

Support ^U for clearing password

^U is a fairly common key combo for clearing fields, this patch adds
support for it.

https://git.suckless.org/slock/commit/bf0a5577acbd9ec7c6a577601b97144b205840d7.html
https://git.suckless.org/slock/commit/3791a996e230aec59d61faea46634ae4f031e359.html
quick cancel: allow cancelling by key press in addition to mouse movement ref. #11
simplify post-lock cmd and die if it fails

this patch does two things:

0. simplify the code by using posix_spawn()
1. unify the behavior of what happens if the post-lock cmd fails.

currently, if `fork()` fails, slock will die without locking the screen.
HOWEVER if `execvp()` fails it prints a message to stderr (which the
user cannot see since the screen has been locked already) and only exits
the child while the parent locks the screen.

to reproduce:

	# slock some_bin_that_doesnt_exist

this behavior is inconsistent, if the idea is that post-lock cmd is
_not_ important then we shouldn't `die()` on `fork()` failure either.
and if we assume that the post-lock cmd _is_ important, then we should
die on exec failure as well.

this patch assumes the latter and calls `die()` if `posix_spawn()`
fails.

ref.
https://git.suckless.org/slock/commit/a70d5d2429abf8dcb70a8817990975dc9a621d27.html
316de885 — bakkeby 2 years ago
slock.1: use standard wording for options

Remove the OPTIONS section and add an EXIT STATUS section.

ref.
https://git.suckless.org/slock/commit/a34d8fb4327bbb1afd92e7527c53fcaad547a495.html
6020a799 — bakkeby 2 years ago
write version to stdout like the man page says

ref.
https://git.suckless.org/slock/commit/e8bca65d629a4faa89439c9f0e599efb5a259573.html
67f3da2d — bakkeby 2 years ago
slock.1: improve man page

* Fix all lint warnings.
* Remove "Op Ar arg..." in the description. It looks ugly.
* No need to set -offset left for .Bd literal.

ref.
https://git.suckless.org/slock/commit/ca6f30f621c1195b577ace7a14b9037fab0dab91.html
d06ca3a6 — bakkeby 2 years ago
Makefile: be verbose and remove options

Some things to improve at some point:

* Respect system/packaging CFLAGS/LDFLAGS (don't hardcode -Os -Wall -pedantic,
  -s, etc).

ref.
https://git.suckless.org/slock/commit/5678764412873baa62e1536f0622d6a7cec62181.html
780a7887 — bakkeby 3 years ago
Bump to 4f04554.

Makefile: explicit_bzero.c was copied twice (GNU make gives a warning)

bump version to 1.5

Ref.
https://git.suckless.org/slock/commit/265704d73647e0d4823126bbb7ddde1d415a618d.html
https://git.suckless.org/slock/commit/4f045545a25cc02c64bfc08d27ed2ccecb962292.html
3131706f — Stein Gunnar Bakkeby 4 years ago
Merge pull request #8 from herrwusel/pam_consistant

Consistent unlock styles with pam and blur patches
8f6f7897 — herrwusel 4 years ago
Consistent unlock styles with pam and blur patches
9036c899 — bakkeby 4 years ago
config.mk: adding reference to -D_NETBSD_SOURCE and -D_BSD_SOURCE
e71a42ee — bakkeby 4 years ago
Adding background image patch
312951b9 — bakkeby 4 years ago
Proposed change to avoid high CPU usage ref. #7
51d3f49e — bakkeby 4 years ago
Fix for secret password patch compilation error ref. #6
dc5c20a6 — bakkeby 5 years ago
Comment out dependencies by default
3f2ac9ba — bakkeby 5 years ago
dwmlogo: avoid defining BACKGROUND colour if BLUR_PIXELATED_SCREEN_PATCH is enabled ref. #5
e5e04272 — bakkeby 5 years ago
Adding dwmlogo patch ref. #5
Next