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
, 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 *);
71 /** Layout txt width */
77 /** Drawable object */
83 typedef struct Client Client
;
88 /** Window geometry */
90 /** Real window geometry for floating */
92 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
93 int minax
, maxax
, minay
, maxay
;
95 int border
, oldborder
;
96 /** Store previous floating state before maximizing */
98 /** True if the window is floating */
100 /** True if the window is fixed */
102 /** True if the window is maximized */
104 /** Tags for the client */
108 /** Previous client */
113 /** Next client in tab */
115 /** Previous client in tab */
117 /** True if client is the visible one */
119 /** True if client is tabbed */
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 */
146 /** Main configuration structure */
147 struct awesome_config
151 /** Config virtual screen number */
153 /** Config physical screen */
157 /** Number of tags in **tags */
161 /** Number of layouts in *layouts */
165 /** Number of rules in *rules */
167 /** Keys binding list */
169 /** Number of keys binding in *keys */
171 /** Default modkey */
174 unsigned int numlockmask
;
175 /** Default status bar position */
176 int statusbar_default_position
;
179 /** Master width factor */
181 /** Number of pixels to snap windows */
183 /** Number of master windows */
185 /** Number of columns in tile layout */
187 /** Transparency of unfocused clients */
188 int opacity_unfocused
;
189 /** Focus move pointer */
190 Bool focus_move_pointer
;
191 /** Allow floats to be lowered on focus change */
192 Bool allow_lower_floats
;
193 /** Respect resize hints */
195 /** Text displayed in bar */
196 char statustext
[256];
199 /** Check for XShape extension */
201 /** Check for XRandR extension */
204 XColor colors_normal
[ColLast
];
205 /** Selected colors */
206 XColor colors_selected
[ColLast
];
208 XColor colors_tab
[ColLast
];
210 Cursor cursor
[CurLast
];
215 /** Path to config file */
219 void parse_config(const char *, awesome_config
*);
221 void uicb_reloadconfig(awesome_config
*, const char *);
224 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99