patch | ||
.gitignore | ||
arg.h | ||
config.def.h | ||
config.mk | ||
explicit_bzero.c | ||
LICENSE | ||
Makefile | ||
patches.h | ||
README | ||
README.md | ||
slock.1 | ||
slock.c | ||
util.h |
Similar to dwm-flexipatch this slock 1.4 project has a different take on patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched and the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
For example to include the capscolor
patch then you would only need to flip this setting from 0 to 1 in patches.h:
#define CAPSCOLOR_PATCH 1
Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch.
Alternatively if you have found the patches you want, but don't want the rest of the flexipatch entanglement on your plate then you may want to have a look at flexipatch-finalizer; a custom pre-processor tool that removes all the unused flexipatch code leaving you with a build that contains the patches you selected.
Refer to https://tools.suckless.org/slock/ for details on the slock tool, how to install it and how it works.
Changelog:
2019-10-17 - Added capscolor, control clear, dpms, mediakeys, message, pam auth, quickcancel patches
2019-10-16 - Introduced flexipatch-finalizer
Patches included:
-
- adds an additional color to indicate the state of Caps Lock
-
- with this patch slock will no longer change to the failure color if a control key is pressed while the buffer is empty
- this may be useful if, for example, you wake your monitor up by pressing a control key and don't want to spoil the detection of failed unlocking attempts
-
- interacts with the Display Power Signaling and automatically shuts down the monitor after a configurable amount of seconds
- the monitor will automatically be activated by pressing a key or moving the mouse and the password can be entered then
-
- allows media keys to be used while the screen is locked, e.g. adjust volume or skip to the next song without having to unlock the screen first
-
- this patch lets you add a custom message to your lock screen
-
- replaces shadow support with PAM authentication support
-
- cancel slock by moving the mouse within a certain time-period after slock started
- the time-period can be defined in seconds with the setting timetocancel in the config.h
- this can be useful if you forgot to disable xautolock during an activity that requires no input (e.g. reading text, watching video, etc.)
-
- adds key commands that are commonly used in terminal applications (in particular the login prompt)
-
- this patch keeps the screen unlocked, but keeps the input locked
- that is, the screen is not affected by slock, but users will not be able to interact with the X session unless they enter the correct password