updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / dvtm-git / config.h
blob39e121ee9293818f24238fd5b5ddf51a307adda6
1 /* curses attributes for the currently focused window */
2 /* valid curses attributes are listed below they can be ORed
4 * A_NORMAL Normal display (no highlight)
5 * A_STANDOUT Best highlighting mode of the terminal.
6 * A_UNDERLINE Underlining
7 * A_REVERSE Reverse video
8 * A_BLINK Blinking
9 * A_DIM Half bright
10 * A_BOLD Extra bright or bold
11 * A_PROTECT Protected mode
12 * A_INVIS Invisible or blank mode
15 #define BLUE (COLORS==256 ? 68 : COLOR_BLUE)
17 #define SELECTED_ATTR A_NORMAL
18 #define SELECTED_FG BLUE
19 #define SELECTED_BG -1
20 /* curses attributes for normal (not selected) windows */
21 #define NORMAL_ATTR A_NORMAL
22 #define NORMAL_FG -1
23 #define NORMAL_BG -1
24 /* status bar (command line option -s) position */
25 #define BARPOS BarTop /* BarBot, BarOff */
26 /* curses attributes for the status bar */
27 #define BAR_ATTR A_NORMAL
28 #define BAR_FG BLUE
29 #define BAR_BG -1
30 /* determines whether the statusbar text should be right or left aligned */
31 #define BAR_ALIGN ALIGN_RIGHT
32 /* separator between window title and window number */
33 #define SEPARATOR " | "
34 /* printf format string for the window title, first %s
35 * is replaced by the title, second %s is replaced by
36 * the SEPARATOR, %d stands for the window number */
37 #define TITLE "[%s%s#%d]"
38 /* master width factor [0.1 .. 0.9] */
39 #define MWFACT 0.5
40 /* scroll back buffer size in lines */
41 #define SCROLL_BUF_SIZE 500
43 #include "tile.c"
44 #include "grid.c"
45 #include "bstack.c"
46 #include "fullscreen.c"
48 /* by default the first layout entry is used */
49 Layout layouts[] = {
50 { "[]=", tile },
51 { "+++", grid },
52 { "TTT", bstack },
53 { "[ ]", fullscreen },
56 #define MOD CTRL('g')
58 /* you can at most specifiy MAX_ARGS (2) number of arguments */
59 Key keys[] = {
60 { MOD, 'c', { create, { NULL } } },
61 { MOD, 'x', { killclient, { NULL } } },
62 { MOD, 'j', { focusnext, { NULL } } },
63 { MOD, 'u', { focusnextnm, { NULL } } },
64 { MOD, 'i', { focusprevnm, { NULL } } },
65 { MOD, 'k', { focusprev, { NULL } } },
66 { MOD, 't', { setlayout, { "[]=" } } },
67 { MOD, 'g', { setlayout, { "+++" } } },
68 { MOD, 'b', { setlayout, { "TTT" } } },
69 { MOD, 'm', { setlayout, { "[ ]" } } },
70 { MOD, ' ', { setlayout, { NULL } } },
71 { MOD, 'h', { setmwfact, { "-0.05" } } },
72 { MOD, 'l', { setmwfact, { "+0.05" } } },
73 { MOD, '.', { toggleminimize, { NULL } } },
74 #ifdef CONFIG_STATUSBAR
75 { MOD, 's', { togglebar, { NULL } } },
76 #endif
77 #ifdef CONFIG_MOUSE
78 { MOD, 'M', { mouse_toggle, { NULL } } },
79 #endif
80 { MOD, '\n', { zoom , { NULL } } },
81 { MOD, '1', { focusn, { "1" } } },
82 { MOD, '2', { focusn, { "2" } } },
83 { MOD, '3', { focusn, { "3" } } },
84 { MOD, '4', { focusn, { "4" } } },
85 { MOD, '5', { focusn, { "5" } } },
86 { MOD, '6', { focusn, { "6" } } },
87 { MOD, '7', { focusn, { "7" } } },
88 { MOD, '8', { focusn, { "8" } } },
89 { MOD, '9', { focusn, { "9" } } },
90 { MOD, 'q', { quit, { NULL } } },
91 { MOD, 'G', { escapekey, { NULL } } },
92 { MOD, 'a', { togglerunall, { NULL } } },
93 { MOD, 'r', { redraw, { NULL } } },
94 { MOD, 'X', { lock, { NULL } } },
95 { MOD, 'B', { togglebell, { NULL } } },
96 { MOD, KEY_PPAGE, { scrollback, { "-1" } } },
97 { MOD, KEY_NPAGE, { scrollback, { "1" } } },
98 { MOD, '?', { create, { "man dvtm", "dvtm help" } } },
101 /* possible values for the mouse buttons are listed below:
103 * BUTTON1_PRESSED mouse button 1 down
104 * BUTTON1_RELEASED mouse button 1 up
105 * BUTTON1_CLICKED mouse button 1 clicked
106 * BUTTON1_DOUBLE_CLICKED mouse button 1 double clicked
107 * BUTTON1_TRIPLE_CLICKED mouse button 1 triple clicked
108 * BUTTON2_PRESSED mouse button 2 down
109 * BUTTON2_RELEASED mouse button 2 up
110 * BUTTON2_CLICKED mouse button 2 clicked
111 * BUTTON2_DOUBLE_CLICKED mouse button 2 double clicked
112 * BUTTON2_TRIPLE_CLICKED mouse button 2 triple clicked
113 * BUTTON3_PRESSED mouse button 3 down
114 * BUTTON3_RELEASED mouse button 3 up
115 * BUTTON3_CLICKED mouse button 3 clicked
116 * BUTTON3_DOUBLE_CLICKED mouse button 3 double clicked
117 * BUTTON3_TRIPLE_CLICKED mouse button 3 triple clicked
118 * BUTTON4_PRESSED mouse button 4 down
119 * BUTTON4_RELEASED mouse button 4 up
120 * BUTTON4_CLICKED mouse button 4 clicked
121 * BUTTON4_DOUBLE_CLICKED mouse button 4 double clicked
122 * BUTTON4_TRIPLE_CLICKED mouse button 4 triple clicked
123 * BUTTON_SHIFT shift was down during button state change
124 * BUTTON_CTRL control was down during button state change
125 * BUTTON_ALT alt was down during button state change
126 * ALL_MOUSE_EVENTS report all button state changes
127 * REPORT_MOUSE_POSITION report mouse movement
130 #ifdef CONFIG_MOUSE
131 Button buttons[] = {
132 { BUTTON1_CLICKED, { mouse_focus, { NULL } } },
133 { BUTTON1_DOUBLE_CLICKED, { mouse_fullscreen, { "[ ]" } } },
134 { BUTTON2_CLICKED, { mouse_zoom, { NULL } } },
135 { BUTTON3_CLICKED, { mouse_minimize, { NULL } } },
137 #endif /* CONFIG_MOUSE */
139 #ifdef CONFIG_CMDFIFO
140 Cmd commands[] = {
141 { "create", { create, { NULL } } },
143 #endif /* CONFIG_CMDFIFO */
145 /* gets executed when dvtm is started */
146 Action actions[] = {
147 { create, { NULL } },