diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-19 23:03:09 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-19 23:03:09 -0500 |
| commit | 4ebfcc2fdc9a48067a149652b91e6103e1f048c3 (patch) | |
| tree | 2d7d49dfad38ed6e68a354708d63589006d5c996 /config.def.h | |
| parent | 35633d45672d14bd798c478c45d1a17064701aa9 (diff) | |
| download | slock-4ebfcc2fdc9a48067a149652b91e6103e1f048c3.tar.gz | |
Applied Xresources patch
https://tools.suckless.org/slock/patches/xresources/
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 9855e21..6ab12bf 100644 --- a/config.def.h +++ b/config.def.h @@ -8,5 +8,44 @@ static const char *colorname[NUMCOLS] = { [FAILED] = "#CC3333", /* wrong password */ }; + +/* + * Xresources preferences to load at startup + */ +ResourcePref resources[] = { + { "color0", STRING, &colorname[INIT] }, + { "color4", STRING, &colorname[INPUT] }, + { "color1", STRING, &colorname[FAILED] }, +}; + + /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; + +/* insert grid pattern with scale 1:1, the size can be changed with logosize */ +static const int logosize = 75; +/* grid width and height for right center alignment */ +static const int logow = 12; +static const int logoh = 6; + +static XRectangle rectangles[9] = { + /* x y w h */ + { 0, 3, 1, 3 }, + { 1, 3, 2, 1 }, + { 0, 5, 8, 1 }, + { 3, 0, 1, 5 }, + { 5, 3, 1, 2 }, + { 7, 3, 1, 2 }, + { 8, 3, 4, 1 }, + { 9, 4, 1, 2 }, + { 11, 4, 1, 2 }, +}; + +/*Enable blur*/ +#define BLUR +/*Set blur radius*/ +static const int blurRadius=10; +/*Enable Pixelation*/ +//#define PIXELATION +/*Set pixelation radius*/ +static const int pixelSize=0; |