Display timeout setting and run loop improvements.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/* user and group to drop privileges to */
|
||||
/* NOTE: Leave these empty if you want them to be determined automatically. */
|
||||
static const char *user = "";
|
||||
static const char *group = "";
|
||||
|
||||
static const int displaytimeout = 5; /* 0 to disable */
|
||||
|
||||
static const char *colorname[NUMCOLS] = {
|
||||
[INIT] = "black", /* after initialization */
|
||||
[INPUT] = "#005577", /* during input */
|
||||
[FAILED] = "#CC3333", /* wrong password */
|
||||
};
|
||||
|
||||
/* treat a cleared input like a wrong password (color) */
|
||||
static const int failonclear = 1;
|
||||
|
||||
static const Passthrough passthroughs[] = {
|
||||
/* Modifier Key */
|
||||
{ 0, XF86XK_AudioRaiseVolume },
|
||||
{ 0, XF86XK_AudioLowerVolume },
|
||||
{ 0, XF86XK_AudioMute },
|
||||
{ 0, XF86XK_AudioPause },
|
||||
{ 0, XF86XK_AudioStop },
|
||||
{ 0, XF86XK_AudioNext },
|
||||
{ 0, XF86XK_AudioPrev },
|
||||
{ 0, XF86XK_MonBrightnessUp },
|
||||
{ 0, XF86XK_MonBrightnessDown },
|
||||
};
|
||||
|
||||
/*static const char *dspoffcmd[] = { "xset", "dpms", "force", "off", NULL };*/
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
0
|
||||
/*{ 0, XK_Escape, spawn, {.v = dspoffcmd } }*/
|
||||
};
|
||||
Reference in New Issue
Block a user