-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconf.h
executable file
·93 lines (76 loc) · 3.24 KB
/
conf.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* Calavera wm ☠ - window manager for X11/Linux.
* See LICENSE file for copyright and license details.
*/
#ifndef CONF_H
#define CONF_H
/* OPTIONS */
/* Connect to a specific display */
#define DISPLAY ":0"
/* Focused/Unfocused border color */
#define UNFOCUS 0xdfdfdf
#define FOCUS 0x94bff3
/* Border pixel around windows */
#define BORDER_SIZE 1
/* Snap distance */
#define SNAP 16
/* Reserved space Top/Bottom of the screen */
#define TOP_SIZE 0
#define BOTTOM_SIZE 0
/* Initial indexing windows 0= 0123456789 1= 123456789 */
#define VIEW_NUMBER_MAP 0
/* X Font cursor theme for normal and command mode
* see http://tronche.com/gui/x/xlib/appendix/b/
*/
#define CURSOR XC_X_cursor
#define CURSOR_WAITKEY XC_icon
/* Pressing a key sends the cursor to the bottom right corner */
#define HIDE_CURSOR 0
/* Show the cursor when waiting for a key */
#define WAITKEY 1
/* Prefix keys setup default (CTRL+T) */
#define PREFIX_MODKEY ControlMask /* modifier prefix */
#define PREFIX_KEYSYM XK_t /* prefix key */
/* COMMANDS */
static const char *CMD_TERM[] = { "urxvt", NULL };
static const char *CMD_BROWSER[] = { "conkeror", NULL, NULL, NULL, "Conkeror" };
static const char *CMD_EDITOR[] = { "emacsclient", "-c", NULL, NULL, "Emacs" };
static const char *CMD_LOCK[] = { "xlock", "-mode", "star", NULL };
/* KEY BINDINGS */
static Key keys[] = {
/* modifier key function argument */
{ None, XK_a, exec, {0} },
{ None, XK_c, spawn, {.v = CMD_TERM } },
{ None, XK_e, runorraise, {.v = CMD_EDITOR } },
{ None, XK_w, runorraise, {.v = CMD_BROWSER } },
{ None, XK_l, spawn, {.v = CMD_LOCK } },
{ None, XK_b, banish, {0} },
{ None, XK_f, fullscreen, {0} },
{ None, XK_m, maximize, {0} },
{ None, XK_period, center, {0} },
{ None, XK_Tab, switcher, {.i = +1 } },
{ ShiftMask, XK_Tab, switcher, {.i = -1 } },
{ None, XK_k, killfocused, {0} },
{ None, XK_0, view, {0} },
{ None, XK_1, view, {1} },
{ None, XK_2, view, {2} },
{ None, XK_3, view, {3} },
{ None, XK_4, view, {4} },
{ None, XK_5, view, {5} },
{ None, XK_6, view, {6} },
{ None, XK_7, view, {7} },
{ None, XK_8, view, {8} },
{ None, XK_9, view, {9} },
{ ShiftMask, XK_r, reload, {0} },
{ ShiftMask, XK_q, quit, {0} },
};
/* MOUSE BUTTONS */
static Button buttons[] = {
/* event mask button function argument */
{ ControlMask, Button1, movemouse, {0} },
{ ControlMask, Button2, killfocused, {0} },
{ ControlMask, Button3, resizemouse, {0} },
{ ControlMask, Button4, switcher, {.i = +1 }},
{ ControlMask, Button5, switcher, {.i = -1 }},
};
#endif