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 Key Key
;
72 typedef struct Button Button
;
83 typedef struct Widget Widget
;
84 typedef struct Statusbar Statusbar
;
90 int (*draw
)(Widget
*, DrawCtx
*, int, int);
91 /** Update function */
92 void (*tell
)(Widget
*, char *);
93 /** ButtonPressedEvent handler */
94 void (*button_press
)(Widget
*, XButtonPressedEvent
*);
99 /** Misc private data */
101 /** True if user supplied coords */
102 Bool user_supplied_x
;
103 Bool user_supplied_y
;
106 /** Buttons bindings */
117 /** Statusbar name */
123 /** Layout txt width */
125 /** Default position */
137 /** Next statusbar */
141 typedef struct Client Client
;
146 /** Window geometry */
148 /** Floating window geometry */
150 /** Max window geometry */
152 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
153 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 */
167 /** True if the client must be skipped from task bar client list */
171 /** Previous client */
173 /** Window of the client */
175 /** Client logical 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 */
244 /** Sloppy focus: focus follow mouse */
246 /** True if new clients should become master */
247 Bool new_become_master
;
249 XColor colors_normal
[ColLast
];
250 /** Selected colors */
251 XColor colors_selected
[ColLast
];
252 /** Urgency colors */
253 XColor colors_urgent
[ColLast
];
259 Statusbar
*statusbar
;
266 /** Main configuration structure */
271 /** Logical screens */
275 /** Keys bindings list */
277 /** Mouse bindings list */
284 unsigned int numlockmask
;
285 /** Check for XShape extension */
287 /** Check for XRandR extension */
290 Cursor cursor
[CurLast
];
293 /** Path to config file */
295 /** Selected clients on this tag */
297 /** Link between tags and clients */
298 TagClientLink
*tclink
;
301 void config_parse(const char *);
304 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80