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
;
53 typedef struct AwesomeConf AwesomeConf
;
55 typedef struct Layout Layout
;
59 void (*arrange
) (int);
63 typedef struct Key Key
;
68 void (*func
) (int, char *);
73 typedef struct Button Button
;
78 void (*func
) (int, char *);
84 typedef struct Widget Widget
;
91 /** Layout txt width */
93 /** Default position */
105 typedef struct Client Client
;
110 /** Window geometry */
112 /** Real window geometry for floating */
114 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
115 int minax
, maxax
, minay
, maxay
;
117 int border
, oldborder
;
118 /** Has urgency hint */
120 /** Store previous floating state before maximizing */
122 /** True if the window is floating */
124 /** True if the window is fixed */
126 /** True if the window is maximized */
130 /** Previous client */
132 /** Window of the client */
134 /** Client display */
136 /** Client logical screen */
138 /** Client physical screen */
142 typedef struct FocusList FocusList
;
150 typedef struct Tag Tag
;
155 /** True if selected */
157 /** True if was selected before selecting others tags */
159 /** Current tag layout */
161 /** Master width factor */
163 /** Number of master windows */
165 /** Number of columns in tile layout */
171 /** TagClientLink type */
172 typedef struct TagClientLink TagClientLink
;
183 /** Padding at top */
185 /** Padding at bottom */
187 /** Padding at left */
189 /** Padding at right */
195 /** Number of pixels to snap windows */
199 /** Transparency of unfocused clients */
200 int opacity_unfocused
;
201 /** Focus move pointer */
202 Bool focus_move_pointer
;
203 /** Allow floats to be lowered on focus change */
204 Bool allow_lower_floats
;
205 /** Respect resize hints */
208 XColor colors_normal
[ColLast
];
209 /** Selected colors */
210 XColor colors_selected
[ColLast
];
211 /** Urgency colors */
212 XColor colors_urgent
[ColLast
];
215 TagClientLink
*tclink
;
219 Statusbar
*statusbar
;
230 int (*draw
)(Widget
*, DrawCtx
*, int, int);
231 void (*tell
)(Widget
*, char *);
232 Statusbar
*statusbar
;
241 /** Main configuration structure */
246 /** Logical screens */
250 /** Keys bindings list */
252 /** Mouse bindings list */
262 unsigned int numlockmask
;
263 /** Check for XShape extension */
265 /** Check for XRandR extension */
268 Cursor cursor
[CurLast
];
271 /** Path to config file */
273 /** Selected clients on this tag */
277 void config_parse(const char *);
280 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80