-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.h
56 lines (49 loc) · 2.14 KB
/
config.h
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
/* DEFAULT KEYS
* The following are the possible mask definitions. Note
* that these definitions may vary between X implementations
* and keyboard models.
* XCB_MOD_MASK_1 -> Alt_L Alt_R Meta_L
* XCB_MOD_MASK_2 -> Num_Lock
* XCB_MOD_MASK_3 -> ISO_Level3_Shift
* XCB_MOD_MASK_4 -> Super_L Super_R SuperL Hyper_L
* XCB_MOD_MASK_5 -> ISO_Level5_Shifta
* XCB_MOD_MASK_SHIFT
* XCB_MOD_MASK_CONTROL
* XCB_MOD_MASK_LOCK
* XCB_MOD_MASK_ANY
*/
#define MOD1 XCB_MOD_MASK_4
#define MOD2 XCB_MOD_MASK_SHIFT
/* DEFAULT WINDOW PROPERTIES
* The following parameters can be used to change existing and new
* window behavior.
*/
#define WINDOW_WIDTH 600 /* pixels */
#define WINDOW_HEIGHT 400 /* pixels */
#define WINDOW_MIN_WIDTH 60 /* pixels */
#define WINDOW_MIN_HEIGHT 40 /* pixels */
#define BORDER_WIDTH 1 /* 0 = no border effect */
#define BORDER_COLOR_UNFOCUSED 0x696969 /* 0xRRGGBB */
#define BORDER_COLOR_FOCUSED 0xFFFFFF /* 0xRRGGBB */
/* ALIASED COMMANDS
* Each space delimited argument should be passed as an additional
* value to the character pointer array. For example, to run
* "foo -a bar", the array would be "{ "foo", "-a", "bar", NULL }".
* Since execvp() is a variadic functions, each argument pointer must
* be terminated by a NULL pointer.
*/
static char *termcmd[] = { "st", NULL };
static char *menucmd[] = { "dmenu_run", NULL };
static char *browcmd[] = { "surf", "https://startpage.com", NULL };
/* KEY ALIASES
* In general, one shortcut key should exist per alias. For more key
* definitions, refer to the keysymdef.h and XF86keysym.h headers.
*/
static Key keys[] = {
{ MOD1, 0x0062, spawn, browcmd }, /* 0x0062 = XK_b */
{ MOD1, 0xff0d, spawn, termcmd }, /* 0xff0d = XK_Enter */
{ MOD1, 0x0020, spawn, menucmd }, /* 0x0020 = XK_space */
{ MOD1, 0x0066, fullclient, NULL }, /* 0x0066 = XK_f */
{ MOD1, 0x0071, killclient, NULL }, /* 0x0071 = XK_q */
{ MOD1|MOD2, 0x0071, closewm, NULL } /* 0x0071 = XK_q */
};