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
};
35 { ColBorder
, ColFG
, ColBG
, ColLast
}; /* color */
38 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
40 typedef struct Rule Rule
;
52 typedef struct AwesomeConf AwesomeConf
;
54 typedef struct Layout Layout
;
58 void (*arrange
) (int);
62 typedef struct Key Key
;
67 void (*func
) (int, char *);
72 typedef struct Button Button
;
77 void (*func
) (int, char *);
83 typedef struct Widget Widget
;
90 /** Layout txt width */
92 /** Default position */
104 typedef struct Client Client
;
109 /** Window geometry */
111 /** Real window geometry for floating */
113 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
114 int minax
, maxax
, minay
, maxay
;
116 int border
, oldborder
;
117 /** Store previous floating state before maximizing */
119 /** True if the window is floating */
121 /** True if the window is fixed */
123 /** True if the window is maximized */
127 /** Previous client */
129 /** Window of the client */
131 /** Client display */
133 /** Client logical screen */
135 /** Client physical screen */
139 typedef struct FocusList FocusList
;
147 typedef struct Tag Tag
;
152 /** True if selected */
154 /** True if was selected before selecting others tags */
156 /** Current tag layout */
158 /** Master width factor */
160 /** Number of master windows */
162 /** Number of columns in tile layout */
168 /** TagClientLink type */
169 typedef struct TagClientLink TagClientLink
;
180 /** Padding at top */
182 /** Padding at bottom */
184 /** Padding at left */
186 /** Padding at right */
192 /** Number of pixels to snap windows */
196 /** Transparency of unfocused clients */
197 int opacity_unfocused
;
198 /** Focus move pointer */
199 Bool focus_move_pointer
;
200 /** Allow floats to be lowered on focus change */
201 Bool allow_lower_floats
;
202 /** Respect resize hints */
205 XColor colors_normal
[ColLast
];
206 /** Selected colors */
207 XColor colors_selected
[ColLast
];
210 TagClientLink
*tclink
;
214 Statusbar
*statusbar
;
225 int (*draw
)(Widget
*, DrawCtx
*, int, int);
226 void (*tell
)(Widget
*, char *);
227 Statusbar
*statusbar
;
234 /** Main configuration structure */
239 /** Logical screens */
243 /** Keys bindings list */
245 /** Mouse bindings list */
255 unsigned int numlockmask
;
256 /** Check for XShape extension */
258 /** Check for XRandR extension */
261 Cursor cursor
[CurLast
];
264 /** Path to config file */
266 /** Selected clients on this tag */
270 void config_parse(const char *);
273 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80