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.def.h

51 lines
1.2 KiB
C
Raw Normal View History

2021-12-28 05:04:49 +00:00
/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nogroup"; // 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 */
};
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "color0", STRING, &colorname[INIT] },
{ "color4", STRING, &colorname[INPUT] },
{ "color1", STRING, &colorname[FAILED] },
{ "color3", STRING, &colorname[CAPS] },
};
/* lock screen opacity */
static const float alpha = 0.9;
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 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;