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>
29 /** Bar possible position */
31 { BarTop
, BarBot
, BarLeft
, BarRight
, BarOff
};
34 { ColBorder
, ColFG
, ColBG
, ColLast
}; /* color */
37 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
48 typedef struct awesome_config awesome_config
;
53 void (*arrange
) (awesome_config
*);
60 void (*func
) (awesome_config
*, char *);
64 typedef struct Button Button
;
69 void (*func
) (awesome_config
*, char *);
80 /** Layout txt width */
82 /** Default position */
88 /** Drawable object */
94 typedef struct Client Client
;
99 /** Window geometry */
101 /** Real window geometry for floating */
103 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
104 int minax
, maxax
, minay
, maxay
;
106 int border
, oldborder
;
107 /** Store previous floating state before maximizing */
109 /** True if the window is floating */
111 /** True if the window is fixed */
113 /** True if the window is maximized */
115 /** Tags for the client */
119 /** Previous client */
121 /** Window of the client */
123 /** Client display */
125 /** Client logical screen */
127 /** Client physical screen */
136 /** True if selected */
138 /** True if was selected before selecting others tags */
140 /** Current tag layout */
142 /** Selected client on this tag */
144 /** Master width factor */
146 /** Number of master windows */
148 /** Number of columns in tile layout */
152 /** Main configuration structure */
153 struct awesome_config
157 /** Config virtual screen number */
159 /** Config physical screen */
163 /** Number of tags in **tags */
167 /** Number of layouts in *layouts */
171 /** Number of rules in *rules */
173 /** Keys bindings list */
175 /** Mouse bindings list */
185 /** Number of keys binding in *keys */
187 /** Default modkey */
190 unsigned int numlockmask
;
193 /** Number of pixels to snap windows */
195 /** Transparency of unfocused clients */
196 int opacity_unfocused
;
197 /** Focus move pointer */
198 Bool focus_move_pointer
;
199 /** Allow floats to be lowered on focus change */
200 Bool allow_lower_floats
;
201 /** Respect resize hints */
203 /** Text displayed in bar */
204 char statustext
[256];
207 /** Check for XShape extension */
209 /** Check for XRandR extension */
212 XColor colors_normal
[ColLast
];
213 /** Selected colors */
214 XColor colors_selected
[ColLast
];
216 Cursor cursor
[CurLast
];
221 /** Path to config file */
225 void parse_config(const char *, awesome_config
*);
227 void uicb_reloadconfig(awesome_config
*, const char *);
230 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99