~kris/suckless

slock

ref: 2445d75b5db8a16f1d98c91bf0fd767a4cd6bbe7 slock/patch/xresources.h -rw-r--r-- 259 bytes
2445d75b — bakkeby Fix bug in DPMS patch + moved patches.h to patches.def.h to match that of config 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <X11/Xresource.h>

/* macros */
#define LEN(a) (sizeof(a) / sizeof(a)[0])

/* Xresources preferences */
enum resource_type {
	STRING = 0,
	INTEGER = 1,
	FLOAT = 2
};

typedef struct {
	char *name;
	enum resource_type type;
	void *dst;
} ResourcePref;