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 */
88 /** True if selected */
90 /** True if was selected before selecting others tags */
92 /** Current tag layout */
96 typedef struct Client Client
;
101 /** Window geometry */
103 /** Real window geometry for floating */
105 int basew
, baseh
, incw
, inch
, maxw
, maxh
, minw
, minh
;
106 int minax
, maxax
, minay
, maxay
;
107 /** True if client is unmapped */
110 int border
, oldborder
;
111 Bool isbanned
, isfixed
, ismax
, isfloating
, wasfloating
;
112 /** Tags for the client */
116 /** Previous client */
121 /** Next client in tab */
123 /** Previous client in tab */
125 /** True if client is the visible one */
127 /** True if client is tabbed */
129 /** Window of the client */
131 /** Client display */
133 /** Client logical screen */
135 /** Client physical screen */
137 /** First time viewed on new layout */
141 /** Main configuration structure */
142 struct awesome_config
146 /** Config virtual screen number */
148 /** Config physical screen */
152 /** Number of tags in **tags */
156 /** Number of layouts in *layouts */
160 /** Number of rules in *rules */
162 /** Keys binding list */
164 /** Number of keys binding in *keys */
166 /** Default modkey */
169 unsigned int numlockmask
;
170 /** Default status bar position */
171 int statusbar_default_position
;
174 /** Master width factor */
176 /** Number of pixels to snap windows */
178 /** Number of master windows */
180 /** Number of columns in tile layout */
182 /** Transparency of unfocused clients */
183 int opacity_unfocused
;
184 /** Focus move pointer */
185 Bool focus_move_pointer
;
186 /** Allow floats to be lowered on focus change */
187 Bool allow_lower_floats
;
188 /** Respect resize hints */
190 /** Text displayed in bar */
191 char statustext
[256];
192 /** Current layout */
193 Layout
* current_layout
;
196 /** Check for XShape extension */
198 /** Check for XRandR extension */
201 XColor colors_normal
[ColLast
];
202 /** Selected colors */
203 XColor colors_selected
[ColLast
];
205 XColor colors_tab
[ColLast
];
207 Cursor cursor
[CurLast
];
212 /** Focused client */
216 void parse_config(Display
*, int, const char *, awesome_config
*); /* parse configuration file */
219 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99