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 */
109 /** Location on status bar */
113 /** Buttons bindings */
124 /** Statusbar name */
130 /** Layout txt width */
132 /** Default position */
144 /** Next statusbar */
148 typedef struct Client Client
;
153 /** Window geometry */
155 /** Real window geometry for floating */
157 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
158 int minax
, maxax
, minay
, maxay
;
160 int border
, oldborder
;
161 /** Has urgency hint */
163 /** Store previous floating state before maximizing */
165 /** True if the window is floating */
167 /** True if the window is fixed */
169 /** True if the window is maximized */
171 /** True if the client must be skipped from client list */
173 /** True if the client must be skipped from task bar client list */
177 /** Previous client */
179 /** Window of the client */
181 /** Client logical screen */
185 typedef struct FocusList FocusList
;
193 typedef struct Tag Tag
;
198 /** True if selected */
200 /** True if was selected before selecting others tags */
202 /** Current tag layout */
204 /** Master width factor */
206 /** Number of master windows */
208 /** Number of columns in tile layout */
214 /** TagClientLink type */
215 typedef struct TagClientLink TagClientLink
;
226 /** Padding at top */
228 /** Padding at bottom */
230 /** Padding at left */
232 /** Padding at right */
238 /** Number of pixels to snap windows */
242 /** Transparency of unfocused clients */
243 int opacity_unfocused
;
244 /** Focus move pointer */
245 Bool focus_move_pointer
;
246 /** Allow floats to be lowered on focus change */
247 Bool allow_lower_floats
;
248 /** Respect resize hints */
250 /** Sloppy focus: focus follow mouse */
252 /** True if new clients should become master */
253 Bool new_become_master
;
255 XColor colors_normal
[ColLast
];
256 /** Selected colors */
257 XColor colors_selected
[ColLast
];
258 /** Urgency colors */
259 XColor colors_urgent
[ColLast
];
265 Statusbar
*statusbar
;
272 /** Main configuration structure */
277 /** Logical screens */
281 /** Keys bindings list */
283 /** Mouse bindings list */
290 unsigned int numlockmask
;
291 /** Check for XShape extension */
293 /** Check for XRandR extension */
296 Cursor cursor
[CurLast
];
299 /** Path to config file */
301 /** Selected clients on this tag */
303 /** Link between tags and clients */
304 TagClientLink
*tclink
;
307 void config_parse(const char *);
310 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80