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 /** True if user supplied coords */
110 Bool user_supplied_x
;
111 Bool user_supplied_y
;
114 /** Buttons bindings */
125 /** Statusbar name */
131 /** Layout txt width */
133 /** Default position */
145 /** Next statusbar */
149 typedef struct Client Client
;
154 /** Window geometry */
156 /** Floating window geometry */
158 /** Max window geometry */
160 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
161 int minax
, maxax
, minay
, maxay
;
162 int border
, oldborder
;
163 /** Has urgency hint */
165 /** Store previous floating state before maximizing */
167 /** True if the window is floating */
169 /** True if the window is fixed */
171 /** True if the window is maximized */
173 /** True if the client must be skipped from client list */
175 /** True if the client must be skipped from task bar client list */
179 /** Previous client */
181 /** Window of the client */
183 /** Client logical screen */
187 typedef struct FocusList FocusList
;
195 typedef struct Tag Tag
;
200 /** True if selected */
202 /** True if was selected before selecting others tags */
204 /** Current tag layout */
206 /** Master width factor */
208 /** Number of master windows */
210 /** Number of columns in tile layout */
216 /** TagClientLink type */
217 typedef struct TagClientLink TagClientLink
;
228 /** Padding at top */
230 /** Padding at bottom */
232 /** Padding at left */
234 /** Padding at right */
240 /** Number of pixels to snap windows */
244 /** Transparency of unfocused clients */
245 int opacity_unfocused
;
246 /** Focus move pointer */
247 Bool focus_move_pointer
;
248 /** Allow floats to be lowered on focus change */
249 Bool allow_lower_floats
;
250 /** Respect resize hints */
252 /** Sloppy focus: focus follow mouse */
254 /** True if new clients should become master */
255 Bool new_become_master
;
257 XColor colors_normal
[ColLast
];
258 /** Selected colors */
259 XColor colors_selected
[ColLast
];
260 /** Urgency colors */
261 XColor colors_urgent
[ColLast
];
267 Statusbar
*statusbar
;
274 /** Main configuration structure */
279 /** Logical screens */
283 /** Keys bindings list */
285 /** Mouse bindings list */
292 unsigned int numlockmask
;
293 /** Check for XShape extension */
295 /** Check for XRandR extension */
298 Cursor cursor
[CurLast
];
301 /** Path to config file */
303 /** Selected clients on this tag */
305 /** Link between tags and clients */
306 TagClientLink
*tclink
;
309 void config_parse(const char *);
312 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80