1
0
mirror of https://github.com/tiyn/slock.git synced 2025-04-19 16:17:46 +02:00

Compare commits

..

3 Commits

Author SHA1 Message Date
7c32775522 added capscolor patch to config 2023-10-26 02:58:36 +02:00
848f53aed5 added control-clear patch to config 2023-10-26 02:49:51 +02:00
1a7de3947f remove unneeded code of dwmlogo patch 2023-10-25 23:28:42 +02:00
2 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,9 @@ This is my patched version of slock. The base version is directly from suckless.
The list below shows the currently applied patches to the master branch.
- slock-background-image-20220318-1c5a538.diff (shows a background image in locked state)
- slock-capscolor-20220921-35633d4.diff (displays a separate color if caps is set)
- slock-dwmlogo-20210324.diff (adds dwm logo on lock screen)
- slock-git-20161012-control-clear.diff (doesnt turn logo red when pressing control keys)
## Installation

View File

@ -3,10 +3,10 @@ static const char *user = "user";
static const char *group = "nobody";
static const char *colorname[NUMCOLS] = {
[INIT] = "#2d2d2d", /* after initialization */
[BACKGROUND] = "black", /* after initialization */
[INPUT] = "#005577", /* during input */
[FAILED] = "#CC3333", /* wrong password */
[INIT] = "#000000", /* after initialization */
[INPUT] = "#0000ff", /* during input */
[FAILED] = "#ff0000", /* wrong password */
[CAPS] = "#ffff00", /* CapsLock on */
};
/* treat a cleared input like a wrong password (color) */
@ -32,3 +32,6 @@ static XRectangle rectangles[9] = {
{ 11, 4, 1, 2 },
};
/* allow control key to trigger fail on clear */
static const int controlkeyclear = 1;