2 * config.h - configuration management header
4 * Copyright © 2007 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
26 #include <X11/Xft/Xft.h>
30 /** Bar possible position */
32 { BarTop
, BarBot
, BarLeft
, BarRight
, BarOff
};
36 { ColBorder
, ColFG
, ColBG
, ColLast
};
39 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
41 typedef struct Rule Rule
;
54 typedef struct AwesomeConf AwesomeConf
;
56 typedef struct Layout Layout
;
60 void (*arrange
) (int);
64 typedef struct Key Key
;
69 void (*func
) (int, char *);
74 typedef struct Button Button
;
79 void (*func
) (int, char *);
85 typedef struct Widget Widget
;
86 typedef struct Statusbar Statusbar
;
92 int (*draw
)(Widget
*, DrawCtx
*, int, int);
93 /** Update function */
94 void (*tell
)(Widget
*, char *);
95 /** ButtonPressedEvent handler */
96 void (*button_press
)(Widget
*, XButtonPressedEvent
*);
101 /** Misc private data */
103 /** Location on status bar */
107 /** Buttons bindings */
118 /** Statusbar name */
124 /** Layout txt width */
126 /** Default position */
138 /** Next statusbar */
142 typedef struct Client Client
;
147 /** Window geometry */
149 /** Real window geometry for floating */
151 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
152 int minax
, maxax
, minay
, maxay
;
154 int border
, oldborder
;
155 /** Has urgency hint */
157 /** Store previous floating state before maximizing */
159 /** True if the window is floating */
161 /** True if the window is fixed */
163 /** True if the window is maximized */
165 /** True if the client must be skipped from client list */
169 /** Previous client */
171 /** Window of the client */
173 /** Client logical screen */
175 /** Client physical screen */
179 typedef struct FocusList FocusList
;
187 typedef struct Tag Tag
;
192 /** True if selected */
194 /** True if was selected before selecting others tags */
196 /** Current tag layout */
198 /** Master width factor */
200 /** Number of master windows */
202 /** Number of columns in tile layout */
208 /** TagClientLink type */
209 typedef struct TagClientLink TagClientLink
;
220 /** Padding at top */
222 /** Padding at bottom */
224 /** Padding at left */
226 /** Padding at right */
232 /** Number of pixels to snap windows */
236 /** Transparency of unfocused clients */
237 int opacity_unfocused
;
238 /** Focus move pointer */
239 Bool focus_move_pointer
;
240 /** Allow floats to be lowered on focus change */
241 Bool allow_lower_floats
;
242 /** Respect resize hints */
245 XColor colors_normal
[ColLast
];
246 /** Selected colors */
247 XColor colors_selected
[ColLast
];
248 /** Urgency colors */
249 XColor colors_urgent
[ColLast
];
255 Statusbar
*statusbar
;
262 /** Main configuration structure */
267 /** Logical screens */
271 /** Keys bindings list */
273 /** Mouse bindings list */
280 unsigned int numlockmask
;
281 /** Check for XShape extension */
283 /** Check for XRandR extension */
286 Cursor cursor
[CurLast
];
289 /** Path to config file */
291 /** Selected clients on this tag */
293 /** Link between tags and clients */
294 TagClientLink
*tclink
;
297 void config_parse(const char *);
300 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80