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
25 #define AWESOME_CONFIG_FILE ".awesomerc"
29 /** Bar possible position */
31 { BarTop
, BarBot
, BarOff
};
34 { ColBorder
, ColFG
, ColBG
, ColLast
}; /* color */
37 { CurNormal
, CurResize
, CurMove
, CurLast
}; /* cursor */
42 unsigned long norm
[ColLast
];
43 unsigned long sel
[ColLast
];
45 Cursor cursor
[CurLast
];
63 typedef struct awesome_config awesome_config
;
68 void (*arrange
) (Display
*, int, awesome_config
*);
75 void (*func
) (Display
*, int, DC
*, awesome_config
*, char *);
90 /** Drawable object */
96 /** Main configuration structure */
99 /** Config screen number */
105 /* Previously selected tags */
106 Bool
*prev_selected_tags
;
107 /** Number of tags in **tags */
111 /** Number of layouts in *layouts */
113 /** Store layout for eatch tag */
114 Layout
**tag_layouts
;
117 /** Number of rules in *rules */
119 /** Keys binding list */
121 /** Number of keys binding in *keys */
123 /** Default modkey */
126 unsigned int numlockmask
;
127 /** Default status bar position */
128 int statusbar_default_position
;
131 /** Master width factor */
133 /** Number of pixels to snap windows */
135 /** Number of master windows */
137 /** Number of columns in tile layout */
139 /** Transparency of unfocused clients */
140 int opacity_unfocused
;
141 /** Respect resize hints */
143 /** Text displayed in bar */
144 char statustext
[256];
145 /** Current layout */
146 Layout
* current_layout
;
149 /** Check for XShape extension */
151 /** Check for XRandR extension */
155 void parse_config(Display
*, int, DC
*, awesome_config
*); /* parse configuration file */