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 */
92 typedef struct Client Client
;
97 /** Window geometry */
99 /** Real window geometry for floating */
101 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
102 int minax
, maxax
, minay
, maxay
;
104 int border
, oldborder
;
105 /** Store previous floating state before maximizing */
107 /** True if the window is floating */
109 /** True if the window is fixed */
111 /** True if the window is maximized */
113 /** Tags for the client */
117 /** Previous client */
119 /** Window of the client */
121 /** Client display */
123 /** Client logical screen */
125 /** Client physical screen */
134 /** True if selected */
136 /** True if was selected before selecting others tags */
138 /** Current tag layout */
140 /** Selected client on this tag */
142 /** Master width factor */
144 /** Number of master windows */
146 /** Number of columns in tile layout */
150 /** Main configuration structure */
151 struct awesome_config
155 /** Config virtual screen number */
157 /** Config physical screen */
161 /** Number of tags in **tags */
165 /** Number of layouts in *layouts */
169 /** Number of rules in *rules */
171 /** Keys bindings list */
173 /** Mouse bindings list */
183 /** Number of keys binding in *keys */
185 /** Default modkey */
188 unsigned int numlockmask
;
191 /** Number of pixels to snap windows */
193 /** Transparency of unfocused clients */
194 int opacity_unfocused
;
195 /** Focus move pointer */
196 Bool focus_move_pointer
;
197 /** Allow floats to be lowered on focus change */
198 Bool allow_lower_floats
;
199 /** Respect resize hints */
201 /** Text displayed in bar */
202 char statustext
[256];
205 /** Check for XShape extension */
207 /** Check for XRandR extension */
210 XColor colors_normal
[ColLast
];
211 /** Selected colors */
212 XColor colors_selected
[ColLast
];
214 Cursor cursor
[CurLast
];
219 /** Path to config file */
223 void parse_config(const char *, awesome_config
*);
225 void uicb_reloadconfig(awesome_config
*, const char *);
228 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99