config.def.h (5021B)
1 /* user and group to drop privileges to */ 2 static const char *user = "nobody"; 3 static const char *group = "nogroup"; // use "nobody" for arch 4 5 static const char *colorname[NUMCOLS] = { 6 #if DWM_LOGO_PATCH && !BLUR_PIXELATED_SCREEN_PATCH 7 [BACKGROUND] = "#2d2d2d", /* after initialization */ 8 #endif // DWM_LOGO_PATCH 9 [INIT] = "black", /* after initialization */ 10 [INPUT] = "#005577", /* during input */ 11 [FAILED] = "#CC3333", /* wrong password */ 12 #if CAPSCOLOR_PATCH 13 [CAPS] = "red", /* CapsLock on */ 14 #endif // CAPSCOLOR_PATCH 15 #if PAMAUTH_PATCH 16 [PAM] = "#9400D3", /* waiting for PAM */ 17 #endif // PAMAUTH_PATCH 18 #if KEYPRESS_FEEDBACK_PATCH 19 [BLOCKS] = "#ffffff", /* key feedback block */ 20 #endif // KEYPRESS_FEEDBACK_PATCH 21 }; 22 23 #if MESSAGE_PATCH || COLOR_MESSAGE_PATCH 24 /* default message */ 25 static const char * message = "Suckless: Software that sucks less."; 26 27 /* text color */ 28 static const char * text_color = "#ffffff"; 29 30 /* text size (must be a valid size) */ 31 static const char * font_name = "6x10"; 32 #endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH 33 34 #if BACKGROUND_IMAGE_PATCH 35 /* Background image path, should be available to the user above */ 36 static const char * background_image = ""; 37 #endif // BACKGROUND_IMAGE_PATCH 38 39 #if DWM_LOGO_PATCH 40 /* insert grid pattern with scale 1:1, the size can be changed with logosize */ 41 static const int logosize = 75; 42 static const int logow = 12; /* grid width and height for right center alignment*/ 43 static const int logoh = 6; 44 45 static XRectangle rectangles[] = { 46 /* x y w h */ 47 { 0, 3, 1, 3 }, 48 { 1, 3, 2, 1 }, 49 { 0, 5, 8, 1 }, 50 { 3, 0, 1, 5 }, 51 { 5, 3, 1, 2 }, 52 { 7, 3, 1, 2 }, 53 { 8, 3, 4, 1 }, 54 { 9, 4, 1, 2 }, 55 { 11, 4, 1, 2 }, 56 }; 57 #endif // DWM_LOGO_PATCH 58 59 #if XRESOURCES_PATCH 60 /* 61 * Xresources preferences to load at startup 62 */ 63 ResourcePref resources[] = { 64 #if DWM_LOGO_PATCH && !BLUR_PIXELATED_SCREEN_PATCH 65 { "background", STRING, &colorname[BACKGROUND] }, 66 #endif //DWM_LOGO_PATCH 67 #if BACKGROUND_IMAGE_PATCH 68 { "bg_image", STRING, &background_image }, 69 #endif // BACKGROUND_IMAGE_PATCH 70 { "locked", STRING, &colorname[INIT] }, 71 { "input", STRING, &colorname[INPUT] }, 72 { "failed", STRING, &colorname[FAILED] }, 73 #if CAPSCOLOR_PATCH 74 { "capslock", STRING, &colorname[CAPS] }, 75 #endif // CAPSCOLOR_PATCH 76 #if PAMAUTH_PATCH 77 { "pamauth", STRING, &colorname[PAM] }, 78 #endif // PAMAUTH_PATCH 79 #if MESSAGE_PATCH || COLOR_MESSAGE_PATCH 80 { "message", STRING, &message }, 81 { "text_color", STRING, &text_color }, 82 { "font_name", STRING, &font_name }, 83 #endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH 84 }; 85 #endif // XRESOURCES_PATCH 86 87 #if ALPHA_PATCH 88 /* lock screen opacity */ 89 static const float alpha = 0.9; 90 #endif // ALPHA_PATCH 91 92 /* treat a cleared input like a wrong password (color) */ 93 static const int failonclear = 1; 94 95 #if AUTO_TIMEOUT_PATCH 96 /* length of time (seconds) until */ 97 static const int timeoffset = 60; 98 99 /* should [command] be run only once? */ 100 static const int runonce = 0; 101 102 /* command to be run after [time] has passed */ 103 static const char *command = "doas poweroff"; 104 #endif // AUTO_TIMEOUT_PATCH 105 106 #if FAILURE_COMMAND_PATCH 107 /* number of failed password attempts until failcommand is executed. 108 Set to 0 to disable */ 109 static const int failcount = 0; 110 111 /* command to be executed after [failcount] failed password attempts */ 112 static const char *failcommand = "shutdown"; 113 #endif // FAILURE_COMMAND_PATCH 114 115 #if SECRET_PASSWORD_PATCH 116 static const secretpass scom[] = { 117 /* Password command */ 118 { "shutdown", "doas poweroff"}, 119 }; 120 #endif // SECRET_PASSWORD_PATCH 121 122 #if BLUR_PIXELATED_SCREEN_PATCH 123 /* Enable blur */ 124 #define BLUR 125 /* Set blur radius */ 126 static const int blurRadius = 5; 127 /* Enable Pixelation */ 128 //#define PIXELATION 129 /* Set pixelation radius */ 130 static const int pixelSize = 10; 131 #endif // BLUR_PIXELATED_SCREEN_PATCH 132 133 #if CONTROLCLEAR_PATCH 134 /* allow control key to trigger fail on clear */ 135 static const int controlkeyclear = 0; 136 #endif // CONTROLCLEAR_PATCH 137 138 #if DPMS_PATCH 139 /* time in seconds before the monitor shuts down */ 140 static int monitortime = 5; 141 142 #if VISUAL_UNLOCK_PATCH 143 /* time in seconds before the monitor shuts down, if visual_unlock is enabled */ 144 static const int monitortime_vu = 0; 145 #endif // VISUAL_UNLOCK_PATCH 146 #endif // DPMS_PATCH 147 148 #if KEYPRESS_FEEDBACK_PATCH 149 static short int blocks_enabled = 1; // 0 = don't show blocks 150 static const int blocks_width = 0; // 0 = full width 151 static const int blocks_height = 16; 152 153 // position 154 static const int blocks_x = 0; 155 static const int blocks_y = 0; 156 157 // Number of blocks 158 static const int blocks_count = 10; 159 #endif // KEYPRESS_FEEDBACK_PATCH 160 161 #if PAMAUTH_PATCH 162 /* PAM service that's used for authentication */ 163 static const char* pam_service = "login"; 164 #endif // PAMAUTH_PATCH 165 166 #if QUICKCANCEL_PATCH 167 /* time in seconds to cancel lock with mouse movement */ 168 static const int timetocancel = 4; 169 #endif // QUICKCANCEL_PATCH