patches.def.h (6370B)
1 /* 2 * This file contains patch control flags. 3 * 4 * In principle you should be able to mix and match any patches 5 * you may want. In cases where patches are logically incompatible 6 * one patch may take precedence over the other as noted in the 7 * relevant descriptions. 8 */ 9 10 /* Patches */ 11 12 /* This patch enables transparency for slock. This is intended to be combined 13 * with a compositor that can blur the transparent background. 14 * Extrapolated from https://github.com/khuedoan/slock 15 * https://github.com/khuedoan/slock/commit/5e7a95b50fd72efcf2a40d487278749a17cbb146 16 */ 17 #define ALPHA_PATCH 0 18 19 /* This patch allows for a command to be executed after a specified time of inactivity. 20 * https://tools.suckless.org/slock/patches/auto-timeout/ 21 */ 22 #define AUTO_TIMEOUT_PATCH 0 23 24 /* This patch adds a background image for slock. 25 * This patch depends on the Imlib2 library, uncomment the relevant line in 26 * config.mk when enabling this patch. 27 * This patch is a variant of the blur pixelated screen patch and takes precedence over that. 28 * https://tools.suckless.org/slock/patches/background-image/ 29 */ 30 #define BACKGROUND_IMAGE_PATCH 0 31 32 /* This patch sets the lockscreen picture to a blured or pixelated screenshot. 33 * This patch depends on the Imlib2 library, uncomment the relevant line in 34 * config.mk when enabling this patch. 35 * The background image patch takes precedence over this patch. 36 * https://tools.suckless.org/slock/patches/blur-pixelated-screen/ 37 */ 38 #define BLUR_PIXELATED_SCREEN_PATCH 0 39 40 /* This patch introduces an additional color to indicate the state of Caps Lock. 41 * https://tools.suckless.org/slock/patches/capscolor/ 42 */ 43 #define CAPSCOLOR_PATCH 0 44 45 /* Based on the message patch this patch lets you add a message to your lock screen using 24 bit 46 * color ANSI escape codes. 47 * 48 * You can place a default message in config.h and you can also pass a message with the -m command 49 * line option. 50 * 51 * Practical example: 52 * slock -m "$(printf "text colored \x1b[38;2;0;255;0m green\x1b[39m\n")" 53 * 54 * If you enable this then you also need to add the -lXinerama library to the LIBS 55 * configuration in config.mk. Look for and uncomment the XINERAMA placeholder. 56 * 57 * https://tools.suckless.org/slock/patches/colormessage/ 58 */ 59 #define COLOR_MESSAGE_PATCH 0 60 61 /* Adds an additional configuration parameter, controlkeyclear. When set to 1, slock will no 62 * longer change to the failure color if a control key is pressed while the buffer is empty. 63 * This may be useful if, for example, you wake your monitor up by pressing a control key 64 * and don't want to spoil the detection of failed unlocking attempts. 65 * https://tools.suckless.org/slock/patches/control-clear/ 66 */ 67 #define CONTROLCLEAR_PATCH 0 68 69 /* This patch interacts with the Display Power Signaling and automatically shuts down 70 * the monitor after a configurable amount of seconds. 71 * The monitor will automatically be activated by pressing a key or moving the mouse 72 * and the password can be entered then. 73 * https://tools.suckless.org/slock/patches/dpms/ 74 */ 75 #define DPMS_PATCH 0 76 77 /* This patch draws the dwm logo which changes color based on the state. 78 * https://tools.suckless.org/slock/patches/dwmlogo/ 79 */ 80 #define DWM_LOGO_PATCH 0 81 82 /* This patch allows for a command to be run after a specified number of incorrect attempts. 83 * https://tools.suckless.org/slock/patches/failure-command/ 84 */ 85 #define FAILURE_COMMAND_PATCH 0 86 87 /* Draws random blocks on the screen to display keypress feedback. 88 * https://tools.suckless.org/slock/patches/keypress-feedback/ 89 * https://patch-diff.githubusercontent.com/raw/phenax/bslock/pull/2.diff 90 */ 91 #define KEYPRESS_FEEDBACK_PATCH 0 92 93 /* This patch allows media keys to be used while the screen is locked. Allows for volume 94 * to be adjusted or to skip to the next song without having to unlock the screen first. 95 * https://tools.suckless.org/slock/patches/mediakeys/ 96 */ 97 #define MEDIAKEYS_PATCH 0 98 99 /* This patch lets you add a message to your lock screen. You can place a default message 100 * in config.h and you can also pass a message with the -m command line option. 101 * If you enable this then you also need to add the -lXinerama library to the LIBS 102 * configuration in config.mk. Look for and uncomment the XINERAMA placeholder. 103 * https://tools.suckless.org/slock/patches/message/ 104 */ 105 #define MESSAGE_PATCH 0 106 107 /* Replaces shadow support with PAM authentication support. 108 * Change variable pam_service in config.def.h to the corresponding PAM service. 109 * The default configuration is for ArchLinux's login service. 110 * If you enable this then you also need to add the -lpam library to the LIBS configuration 111 * in config.mk. Look for and uncomment the PAM placeholder. 112 * https://tools.suckless.org/slock/patches/pam_auth/ 113 */ 114 #define PAMAUTH_PATCH 0 115 116 /* Cancel slock by moving the mouse within a certain time-period after slock started. 117 * The time-period can be defined in seconds with the setting timetocancel in the config.h. 118 * This can be useful if you forgot to disable xautolock during an activity that requires 119 * no input (e.g. reading text, watching video, etc.). 120 * https://tools.suckless.org/slock/patches/quickcancel/ 121 */ 122 #define QUICKCANCEL_PATCH 0 123 124 /* This patch allows for commands to be executed when the user enters special passwords. 125 * https://tools.suckless.org/slock/patches/secret-password/ 126 */ 127 #define SECRET_PASSWORD_PATCH 0 128 129 /* Adds key commands that are commonly used in terminal applications (in particular the 130 * login prompt) to slock. 131 * https://tools.suckless.org/slock/patches/terminalkeys/ 132 */ 133 #define TERMINALKEYS_PATCH 0 134 135 /* This patch keeps the screen unlocked but keeps the input locked. That is, the screen 136 * is not affected by slock, but users will not be able to interact with the X session 137 * unless they enter the correct password. 138 * https://tools.suckless.org/slock/patches/unlock_screen/ 139 */ 140 #define UNLOCKSCREEN_PATCH 0 141 142 /* This patch adds a -u command line argument that keeps input locked without showing the lock 143 * screen. The original patch simply combines the unlock screen patch and the DPMS patch. 144 * Enable DPMS_PATCH separately if you want DPMS. 145 * https://tools.suckless.org/slock/patches/visual-unlock-dpms/ 146 */ 147 #define VISUAL_UNLOCK_PATCH 0 148 149 /* This patch adds the ability to get colors via Xresources. 150 * https://tools.suckless.org/slock/patches/xresources/ 151 */ 152 #define XRESOURCES_PATCH 0