Compare commits
5 Commits
fa17ed8583
...
333a6d9675
| Author | SHA1 | Date |
|---|---|---|
|
|
333a6d9675 | |
|
|
37f091cb16 | |
|
|
80527dd298 | |
|
|
ac423628c9 | |
|
|
e7327bb34d |
|
|
@ -23,3 +23,10 @@ make clean install
|
||||||
## Running slock
|
## Running slock
|
||||||
|
|
||||||
Simply invoke the 'slock' command. To get out of it, enter your password.
|
Simply invoke the 'slock' command. To get out of it, enter your password.
|
||||||
|
|
||||||
|
## Blur effect
|
||||||
|
|
||||||
|
This fork leverages picom's new kawase blur method instead of taking a screenshot, blur it using ImageMagick without hardware acceleration and then set it as the lock screen wallpaper.
|
||||||
|
The end result is much higher performance and much lower latency.
|
||||||
|
|
||||||
|
Currently, you will need to enable the experimental backend in picom using `picom --experimental-backends`, you can check out my picom config [here](https://github.com/khuedoan/dotfiles/blob/master/.config/picom/picom.conf#L29).
|
||||||
|
|
|
||||||
10
config.h
10
config.h
|
|
@ -4,12 +4,12 @@ static const char *group = "nobody";
|
||||||
|
|
||||||
static const char *colorname[NUMCOLS] = {
|
static const char *colorname[NUMCOLS] = {
|
||||||
[INIT] = "#000000", /* after initialization */
|
[INIT] = "#000000", /* after initialization */
|
||||||
[INPUT] = "#282a36", /* during input */
|
[INPUT] = "#16181c", /* during input */
|
||||||
[FAILED] = "#ff5555", /* wrong password */
|
[FAILED] = "#54221d", /* wrong password */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* lock screen opacity */
|
/* lock screen opacity */
|
||||||
static const float alpha = 0.5;
|
static const float alpha = 0.8;
|
||||||
|
|
||||||
/* treat a cleared input like a wrong password (color) */
|
/* treat a cleared input like a wrong password (color) */
|
||||||
static const int failonclear = 1;
|
static const int failonclear = 1;
|
||||||
|
|
@ -18,7 +18,7 @@ static const int failonclear = 1;
|
||||||
static const char * message = "Enter password to unlock";
|
static const char * message = "Enter password to unlock";
|
||||||
|
|
||||||
/* text color */
|
/* text color */
|
||||||
static const char * text_color = "#ffffff";
|
static const char * text_color = "#abb2bf";
|
||||||
|
|
||||||
/* text size (must be a valid size) */
|
/* text size (must be a valid size) */
|
||||||
static const char * text_size = "-*-dejavu sans mono-bold-r-normal--22-*-*-*-*-*-iso10646-1";
|
static const char * text_size = "-*-*-medium-r-*-sans-34-*-*-*-*-*-*-*";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue