~kris/suckless

slock

ref: 4b280b29ef50782e5b0dfba7112a55865b4748a2 slock/patches.def.h -rw-r--r-- 3.4 KiB
4b280b29 — bakkeby Adding slock to .gitignore 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
 * This file contains patch control flags.
 *
 * In principle you should be able to mix and match any patches
 * you may want. In cases where patches are logically incompatible
 * one patch may take precedence over the other as noted in the
 * relevant descriptions.
 */

/* Patches */

/* This patch introduces an additional color to indicate the state of Caps Lock.
 * https://tools.suckless.org/slock/patches/capscolor/
 */
#define CAPSCOLOR_PATCH 0

/* Adds an additional configuration parameter, controlkeyclear. When set to 1, slock will no
 * longer change to the failure color if a control key is pressed while the buffer is empty.
 * This may be useful if, for example, you wake your monitor up by pressing a control key
 * and don't want to spoil the detection of failed unlocking attempts.
 * https://tools.suckless.org/slock/patches/control-clear/
 */
#define CONTROLCLEAR_PATCH 0

/* This patch interacts with the Display Power Signaling and automatically shuts down
* the monitor after a configurable amount of seconds.
* The monitor will automatically be activated by pressing a key or moving the mouse
* and the password can be entered then.
* https://tools.suckless.org/slock/patches/dpms/
*/
#define DPMS_PATCH 0

/* This patch allows media keys to be used while the screen is locked. Allows for volume
 * to be adjusted or to skip to the next song without having to unlock the screen first.
 * https://tools.suckless.org/slock/patches/mediakeys/
 */
#define MEDIAKEYS_PATCH 0

/* This patch lets you add a message to your lock screen. You can place a default message
 * in config.h and you can also pass a message with the -m command line option.
 * If you enable this then you also need to add the -lXinerama library to the LIBS
 * configuration in config.mk. Look for and uncomment the XINERAMA placeholder.
 * https://tools.suckless.org/slock/patches/message/
 */
#define MESSAGE_PATCH 0

/* Replaces shadow support with PAM authentication support.
 * Change variable pam_service in config.def.h to the corresponding PAM service.
 * The default configuration is for ArchLinux's login service.
 * If you enable this then you also need to add the -lpam library to the LIBS configuration
 * in config.mk. Look for and uncomment the PAM placeholder.
 * https://tools.suckless.org/slock/patches/pam_auth/
 */
#define PAMAUTH_PATCH 0

/* Cancel slock by moving the mouse within a certain time-period after slock started.
 * The time-period can be defined in seconds with the setting timetocancel in the config.h.
 * This can be useful if you forgot to disable xautolock during an activity that requires
 * no input (e.g. reading text, watching video, etc.).
 * https://tools.suckless.org/slock/patches/quickcancel/
 */
#define QUICKCANCEL_PATCH 0

/* Adds key commands that are commonly used in terminal applications (in particular the
 * login prompt) to slock.
 * https://tools.suckless.org/slock/patches/terminalkeys/
 */
#define TERMINALKEYS_PATCH 0

/* This patch keeps the screen unlocked but keeps the input locked. That is, the screen
 * is not affected by slock, but users will not be able to interact with the X session
 * unless they enter the correct password.
 * https://tools.suckless.org/slock/patches/unlock_screen/
 */
#define UNLOCKSCREEN_PATCH 0

/* This patch adds the ability to get colors via Xresources.
 * https://tools.suckless.org/slock/patches/xresources/
 */
#define XRESOURCES_PATCH 0