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

52 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 = "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 */
};
2022-07-12 02:57:56 +00:00
2021-12-28 05:04:49 +00:00
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
2022-07-12 02:57:56 +00:00
{ "locked", STRING, &colorname[INIT] },
{ "input", STRING, &colorname[INPUT] },
{ "failed", STRING, &colorname[FAILED] },
{ "capslock", STRING, &colorname[CAPS] },
2021-12-28 05:04:49 +00:00
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
2022-07-12 02:57:56 +00:00
2021-12-28 05:04:49 +00:00
/* 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;
2022-07-12 02:57:56 +00:00
/* time in seconds to cancel lock with mouse movement */
2022-09-12 19:33:34 +00:00
static const int timetocancel = 4;