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 */
190 /** True if the client is a new one */
194 typedef struct FocusList FocusList
;
202 typedef struct Tag Tag
;
207 /** True if selected */
209 /** True if was selected before selecting others tags */
211 /** Current tag layout */
213 /** Master width factor */
215 /** Number of master windows */
217 /** Number of columns in tile layout */
223 /** TagClientLink type */
224 typedef struct TagClientLink TagClientLink
;
235 /** Padding at top */
237 /** Padding at bottom */
239 /** Padding at left */
241 /** Padding at right */
247 /** Number of pixels to snap windows */
251 /** Transparency of unfocused clients */
252 int opacity_unfocused
;
253 /** Focus move pointer */
254 Bool focus_move_pointer
;
255 /** Allow floats to be lowered on focus change */
256 Bool allow_lower_floats
;
257 /** Respect resize hints */
259 /** Sloppy focus: focus follow mouse */
261 /** Focus new clients */
263 /** True if new clients should become master */
264 Bool new_become_master
;
266 XColor colors_normal
[ColLast
];
267 /** Selected colors */
268 XColor colors_selected
[ColLast
];
269 /** Urgency colors */
270 XColor colors_urgent
[ColLast
];
276 Statusbar
*statusbar
;
283 /** Main configuration structure */
288 /** Logical screens */
290 /** Number of logical screens */
294 /** Keys bindings list */
296 /** Mouse bindings list */
303 unsigned int numlockmask
;
304 /** Check for XShape extension */
306 /** Check for XRandR extension */
309 Cursor cursor
[CurLast
];
312 /** Path to config file */
314 /** Selected clients on this tag */
316 /** Link between tags and clients */
317 TagClientLink
*tclink
;
318 /** Command line passed to awesome */
322 void config_parse(const char *);
325 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80