Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/suckless/slock/config.h

74 lines
1.9 KiB
C

/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nobody"; // use "nobody" for arch
static const char *colorname[NUMCOLS] = {
[INIT] = "black", /* after initialization */
[INPUT] = "#005577", /* during input */
[FAILED] = "#CC3333", /* wrong password */
[CAPS] = "red", /* CapsLock on */
[BLOCKS] = "#ffffff", /* key feedback block */
};
/* default message */
static const char * message = "Suckless: Software that sucks less.";
/* text color */
static const char * text_color = "#ffffff";
/* text size (must be a valid size) */
static const char * font_name = "6x13";
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "locked", STRING, &colorname[INIT] },
{ "input", STRING, &colorname[INPUT] },
{ "failed", STRING, &colorname[FAILED] },
{ "capslock", STRING, &colorname[CAPS] },
{ "message", STRING, &message },
{ "text_color", STRING, &text_color },
{ "font_name", STRING, &font_name },
};
/* lock screen opacity */
static const float alpha = 0.9;
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
/* Enable blur */
//#define BLUR
/* Set blur radius */
static const int blurRadius = 5;
/* Enable Pixelation */
#define PIXELATION
/* Set pixelation radius */
static const int pixelSize = 10;
/* allow control key to trigger fail on clear */
static const int controlkeyclear = 1;
/* time in seconds before the monitor shuts down */
static const int monitortime = 5;
static short int blocks_enabled = 1; // 0 = don't show blocks
static const int blocks_width = 0; // 0 = full width
static const int blocks_height = 16;
// position
static const int blocks_x = 0;
static const int blocks_y = 0;
// Number of blocks
static const int blocks_count = 10;
/* time in seconds to cancel lock with mouse movement */
static const int timetocancel = 3;