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 */
48 { ColBorder
, ColFG
, ColBG
, ColLast
};
51 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
53 typedef struct Rule Rule
;
67 typedef struct AwesomeConf AwesomeConf
;
69 typedef struct Key Key
;
79 typedef struct Button Button
;
90 typedef struct Widget Widget
;
91 typedef struct Statusbar Statusbar
;
97 int (*draw
)(Widget
*, DrawCtx
*, int, int);
98 /** Update function */
99 void (*tell
)(Widget
*, char *);
100 /** ButtonPressedEvent handler */
101 void (*button_press
)(Widget
*, XButtonPressedEvent
*);
103 Statusbar
*statusbar
;
106 /** Misc private data */
108 /** True if user supplied coords */
109 Bool user_supplied_x
;
110 Bool user_supplied_y
;
113 /** Buttons bindings */
130 /** Statusbar name */
136 /** Layout txt width */
138 /** Default position */
150 /** Next statusbar */
154 typedef struct Client Client
;
159 /** Window geometry */
161 /** Floating window geometry */
163 /** Max window geometry */
165 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
166 int minax
, maxax
, minay
, maxay
;
167 int border
, oldborder
;
168 /** Has urgency hint */
170 /** Store previous floating state before maximizing */
172 /** True if the window is floating */
174 /** True if the window is fixed */
176 /** True if the window is maximized */
178 /** True if the client must be skipped from client list */
180 /** True if the client must be skipped from task bar client list */
184 /** Previous client */
186 /** Window of the client */
188 /** Client logical screen */
192 typedef struct FocusList FocusList
;
200 typedef struct Tag Tag
;
205 /** True if selected */
207 /** True if was selected before selecting others tags */
209 /** Current tag layout */
211 /** Master width factor */
213 /** Number of master windows */
215 /** Number of columns in tile layout */
221 /** TagClientLink type */
222 typedef struct TagClientLink TagClientLink
;
233 /** Padding at top */
235 /** Padding at bottom */
237 /** Padding at left */
239 /** Padding at right */
245 /** Number of pixels to snap windows */
249 /** Transparency of unfocused clients */
250 int opacity_unfocused
;
251 /** Focus move pointer */
252 Bool focus_move_pointer
;
253 /** Allow floats to be lowered on focus change */
254 Bool allow_lower_floats
;
255 /** Respect resize hints */
257 /** Sloppy focus: focus follow mouse */
259 /** Focus new clients */
261 /** True if new clients should become master */
262 Bool new_become_master
;
264 XColor colors_normal
[ColLast
];
265 /** Selected colors */
266 XColor colors_selected
[ColLast
];
267 /** Urgency colors */
268 XColor colors_urgent
[ColLast
];
274 Statusbar
*statusbar
;
281 /** Main configuration structure */
286 /** Logical screens */
288 /** Number of logical screens */
292 /** Keys bindings list */
294 /** Mouse bindings list */
301 unsigned int numlockmask
;
302 /** Check for XShape extension */
304 /** Check for XRandR extension */
307 Cursor cursor
[CurLast
];
310 /** Path to config file */
312 /** Selected clients on this tag */
314 /** Link between tags and clients */
315 TagClientLink
*tclink
;
316 /** Command line passed to awesome */
320 void config_parse(const char *);
323 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80