2 * config.h - configuration management header
4 * Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef AWESOME_CONFIG_H
23 #define AWESOME_CONFIG_H
29 /** Bar possible position */
41 { ColBorder
, ColFG
, ColBG
, ColLast
};
44 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
46 typedef struct Rule Rule
;
60 typedef struct AwesomeConf AwesomeConf
;
62 typedef struct Layout Layout
;
66 LayoutArrange
*arrange
;
70 typedef struct Key Key
;
80 typedef struct Button Button
;
91 typedef struct Widget Widget
;
92 typedef struct Statusbar Statusbar
;
98 int (*draw
)(Widget
*, DrawCtx
*, int, int);
99 /** Update function */
100 void (*tell
)(Widget
*, char *);
101 /** ButtonPressedEvent handler */
102 void (*button_press
)(Widget
*, XButtonPressedEvent
*);
104 Statusbar
*statusbar
;
107 /** Misc private data */
111 /** Buttons bindings */
122 /** Statusbar name */
128 /** Layout txt width */
130 /** Default position */
142 /** Next statusbar */
146 typedef struct Client Client
;
151 /** Window geometry */
153 /** Real window geometry for floating */
155 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
156 int minax
, maxax
, minay
, maxay
;
158 int border
, oldborder
;
159 /** Has urgency hint */
161 /** Store previous floating state before maximizing */
163 /** True if the window is floating */
165 /** True if the window is fixed */
167 /** True if the window is maximized */
169 /** True if the client must be skipped from client list */
171 /** True if the client must be skipped from task bar client list */
175 /** Previous client */
177 /** Window of the client */
179 /** Client logical screen */
183 typedef struct FocusList FocusList
;
191 typedef struct Tag Tag
;
196 /** True if selected */
198 /** True if was selected before selecting others tags */
200 /** Current tag layout */
202 /** Master width factor */
204 /** Number of master windows */
206 /** Number of columns in tile layout */
212 /** TagClientLink type */
213 typedef struct TagClientLink TagClientLink
;
224 /** Padding at top */
226 /** Padding at bottom */
228 /** Padding at left */
230 /** Padding at right */
236 /** Number of pixels to snap windows */
240 /** Transparency of unfocused clients */
241 int opacity_unfocused
;
242 /** Focus move pointer */
243 Bool focus_move_pointer
;
244 /** Allow floats to be lowered on focus change */
245 Bool allow_lower_floats
;
246 /** Respect resize hints */
248 /** Sloppy focus: focus follow mouse */
250 /** True if new clients should become master */
251 Bool new_become_master
;
253 XColor colors_normal
[ColLast
];
254 /** Selected colors */
255 XColor colors_selected
[ColLast
];
256 /** Urgency colors */
257 XColor colors_urgent
[ColLast
];
263 Statusbar
*statusbar
;
270 /** Main configuration structure */
275 /** Logical screens */
279 /** Keys bindings list */
281 /** Mouse bindings list */
288 unsigned int numlockmask
;
289 /** Check for XShape extension */
291 /** Check for XRandR extension */
294 Cursor cursor
[CurLast
];
297 /** Path to config file */
299 /** Selected clients on this tag */
301 /** Link between tags and clients */
302 TagClientLink
*tclink
;
305 void config_parse(const char *);
308 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80