]> Dogcows Code - chaz/openbox/blob - data/rc.xsd
add noStrut option to dock and fix up rc.xsd, some options were in the wrong section...
[chaz/openbox] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 xml Schema for the openbox windowmanager configuration file
4
5 Changes:
6 Son Aug 10 15:49:10 CEST 2003 - pch(a)myzel.net
7 restrictions added, up to current format
8 Don Aug 14 21:10:27 CEST 2003 - pch(a)myzel.net
9 up to current (from action.c,config.c)
10 Don Aug 21 23:07:30 CEST 2003 - pch(a)myzel.net
11 new element - follow
12 Mon Sep 1 00:57:55 CEST 2003 - pch(a)myzel.net
13 up to alpha7
14 Mit Sep 3 12:40:10 CEST 2003 - pch(a)myzel.net
15 up to alpha8, a little documentation
16 Mon Sep 8 11:52:07 CEST 2003 - pch(a)myzel.net
17 up to cvs 1.12
18 Mon Sep 15 14:27:42 CEST 2003 - pch(a)myzel.net
19 up to cvs 1.14
20 Die Sep 16 20:56:37 CEST 2003 - pch(a)myzel.net
21 use a namespace
22 Fri Sep 19 14:36:33 EDT 2003 - xor(a)orodu.net
23 use openbox.org for namespace
24 Mon Sep 22 02:34:53 EDT 2003 - xor(a)orodu.net
25 add the focusLast and raiseOnFocus options
26 fix some capitalization
27 Mon Sep 22 14:08:16 EDT 2003 - xor(a)orodu.net
28 update hideTimeout to hideDelay
29 Thu Apr 22 12:33:11 UTC 2004 - mikachu(a)openbox.org
30 add diffs between 3.1 and 3.2
31 Sun Oct 31 10:08:34 UTC 2004 - mikachu(a)openbox.org
32 we haven't remembered to update this changelog in a while,
33 adding desktopMenuIcons.
34 Thu Nov 4 12:07:08 UTC 2004 - mikachu(a)openbox.org
35 Add fourCorners to resize context.
36 Sat Feb 12 01:57:16 UTC 2005 - mikachu(a)openbox.org
37 Add the group option to raise/lower stuff.
38 -->
39 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
40 targetNamespace="http://openbox.org/"
41 xmlns:ob="http://openbox.org/"
42 elementFormDefault="qualified">
43 <!--
44 root node
45 -->
46 <xs:element name="openbox_config">
47 <xs:annotation>
48 <xs:documentation>all these elements are expected in a openbox config file</xs:documentation>
49 </xs:annotation>
50 <xs:complexType>
51 <xs:sequence>
52 <xs:element name="resistance" type="ob:resistance"/>
53 <xs:element name="focus" type="ob:focus"/>
54 <xs:element name="placement" type="ob:placement"/>
55 <xs:element name="theme" type="ob:theme"/>
56 <xs:element name="desktops" type="ob:desktops"/>
57 <xs:element name="resize" type="ob:resize"/>
58 <xs:element name="dock" type="ob:dock"/>
59 <xs:element name="keyboard" type="ob:keyboard"/>
60 <xs:element name="mouse" type="ob:mouse"/>
61 <xs:element name="menu" type="ob:menu"/>
62 </xs:sequence>
63 </xs:complexType>
64 </xs:element>
65 <!--
66 complex types
67 -->
68 <xs:complexType name="resistance">
69 <xs:annotation>
70 <xs:documentation>defines behaviour of windows when close to eachother or the screen edge</xs:documentation>
71 </xs:annotation>
72 <xs:sequence>
73 <xs:element name="strength" type="xs:integer"/>
74 <xs:element name="screen_edge_strength" type="xs:integer"/>
75 <xs:element name="edges_hit_layers_below" type="xs:yesorno"/>
76 </xs:sequence>
77 </xs:complexType>
78 <xs:complexType name="focus">
79 <xs:annotation>
80 <xs:documentation>defines aspects of window focus</xs:documentation>
81 </xs:annotation>
82 <xs:sequence>
83 <xs:element name="focusNew" type="ob:yesorno"/>
84 <xs:element name="focusLast" type="ob:yesorno"/>
85 <xs:element name="followMouse" type="ob:yesorno"/>
86 <xs:element name="focusDelay" type="xs:integer"/>
87 <xs:element name="raiseOnFocus" type="ob:yesorno"/>
88 </xs:sequence>
89 </xs:complexType>
90 <xs:complexType name="placement">
91 <xs:annotation>
92 <xs:documentation>defines how new windows are placed</xs:documentation>
93 </xs:annotation>
94 <xs:sequence>
95 <xs:element name="policy" type="ob:placementpolicy"/>
96 </xs:sequence>
97 </xs:complexType>
98 <xs:complexType name="theme">
99 <xs:sequence>
100 <xs:element name="name" type="xs:string"/>
101 <xs:element name="titlelayout" type="xs:string"/>
102 <xs:element name="keepBorder" type="ob:yesorno"/>
103 </xs:sequence>
104 </xs:complexType>
105 <xs:complexType name="desktops">
106 <xs:sequence>
107 <xs:element name="number" type="xs:integer"/>
108 <xs:element name="names">
109 <xs:complexType>
110 <xs:sequence>
111 <xs:element maxOccurs="unbounded" name="name" type="xs:string"/>
112 </xs:sequence>
113 </xs:complexType>
114 </xs:element>
115 <xs:element name="firstdesk" type="xs:integer"/>
116 </xs:sequence>
117 </xs:complexType>
118 <xs:complexType name="resize">
119 <xs:sequence>
120 <xs:element name="drawContents" type="ob:yesorno"/>
121 <xs:element name="fourCorners" type="ob:yesorno"/>
122 <xs:element name="popupShow" type="ob:popupshow"/>
123 <xs:element name="popupPosition" type="ob:popupposition"/>
124 </xs:sequence>
125 </xs:complexType>
126 <xs:complexType name="dock">
127 <xs:sequence>
128 <xs:element name="position" type="ob:position"/>
129 <xs:element name="stacking" type="ob:stacking"/>
130 <xs:element name="direction" type="ob:direction"/>
131 <xs:element name="floatingX" type="xs:integer"/>
132 <xs:element name="floatingY" type="xs:integer"/>
133 <xs:element name="autoHide" type="ob:yesorno"/>
134 <xs:element name="hideDelay" type="xs:integer"/>
135 <xs:element name="moveButton" type="ob:button"/>
136 <xs:element name="noStrut" type="ob:yesorno"/>
137 </xs:sequence>
138 </xs:complexType>
139 <xs:complexType name="action">
140 <xs:sequence>
141 <xs:element minOccurs="0" name="menu" type="xs:string"/>
142 <xs:element minOccurs="0" name="desktop" type="xs:integer"/>
143 <xs:element minOccurs="0" name="follow" type="ob:yesorno"/>
144 <xs:element minOccurs="0" name="execute" type="xs:string"/>
145 <xs:element minOccurs="0" name="group" type="ob:yesorno"/>
146 <xs:element minOccurs="0" name="dialog" type="ob:yesorno"/>
147 </xs:sequence>
148 <xs:attribute name="name" type="ob:actionname" use="required"/>
149 </xs:complexType>
150 <xs:complexType name="keybind">
151 <xs:sequence>
152 <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
153 </xs:sequence>
154 <xs:attribute name="key" type="ob:keyname" use="required"/>
155 </xs:complexType>
156 <xs:complexType name="keyboard">
157 <xs:sequence>
158 <xs:element name="chainQuitKey" type="ob:keyname"/>
159 <xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
160 </xs:sequence>
161 </xs:complexType>
162 <xs:complexType name="mousebind">
163 <xs:sequence>
164 <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
165 </xs:sequence>
166 <xs:attribute name="action" type="ob:mouseaction" use="required"/>
167 <xs:attribute name="button" type="ob:button" use="required"/>
168 </xs:complexType>
169 <xs:complexType name="context">
170 <xs:sequence>
171 <xs:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
172 </xs:sequence>
173 <xs:attribute name="name" type="ob:contextname" use="required"/>
174 </xs:complexType>
175 <xs:complexType name="mouse">
176 <xs:sequence>
177 <xs:element name="dragThreshold" type="xs:integer"/>
178 <xs:element name="doubleClickTime" type="xs:integer"/>
179 <xs:element maxOccurs="unbounded" name="context" type="ob:context"/>
180 </xs:sequence>
181 </xs:complexType>
182 <xs:complexType name="menu">
183 <xs:sequence>
184 <xs:element maxOccurs="unbounded" name="file" type="xs:string"/>
185 <xs:element name="warpPointer" type="ob:yesorno"/>
186 <xs:element name="xorStyle" type="ob:yesorno"/>
187 <xs:element name="hideDelay" type="xs:integer"/>
188 <xs:element name="desktopMenuIcons" type="ob:yesorno"/>
189 </xs:sequence>
190 </xs:complexType>
191 <!--
192 simple types / restrictions
193 -->
194 <xs:simpleType name="yesorno">
195 <xs:restriction base="xs:string">
196 <xs:enumeration value="yes"/>
197 <xs:enumeration value="no"/>
198 </xs:restriction>
199 </xs:simpleType>
200 <xs:simpleType name="placementpolicy">
201 <xs:restriction base="xs:string">
202 <xs:enumeration value="Smart"/>
203 <xs:enumeration value="UnderMouse"/>
204 </xs:restriction>
205 </xs:simpleType>
206 <xs:simpleType name="popupshow">
207 <xs:restriction base="xs:string">
208 <xs:enumeration value="Always"/>
209 <xs:enumeration value="Never"/>
210 <xs:enumeration value="Nonpixel"/>
211 </xs:restriction>
212 </xs:simpleType>
213 <xs:simpleType name="popupposition">
214 <xs:restriction base="xs:string">
215 <xs:enumeration value="Top"/>
216 <xs:enumeration value="Center"/>
217 </xs:restriction>
218 </xs:simpleType>
219 <xs:simpleType name="position">
220 <xs:restriction base="xs:string">
221 <xs:enumeration value="TopLeft"/>
222 <xs:enumeration value="Top"/>
223 <xs:enumeration value="TopRight"/>
224 <xs:enumeration value="Right"/>
225 <xs:enumeration value="BottomRight"/>
226 <xs:enumeration value="Bottom"/>
227 <xs:enumeration value="BottomLeft"/>
228 <xs:enumeration value="Left"/>
229 <xs:enumeration value="Floating"/>
230 </xs:restriction>
231 </xs:simpleType>
232 <xs:simpleType name="stacking">
233 <xs:restriction base="xs:string">
234 <xs:enumeration value="Top"/>
235 <xs:enumeration value="Normal"/>
236 <xs:enumeration value="Bottom"/>
237 </xs:restriction>
238 </xs:simpleType>
239 <xs:simpleType name="direction">
240 <xs:restriction base="xs:string">
241 <xs:enumeration value="Horizontal"/>
242 <xs:enumeration value="Vertical"/>
243 </xs:restriction>
244 </xs:simpleType>
245 <xs:simpleType name="keyname">
246 <xs:restriction base="xs:string">
247 <xs:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
248 </xs:restriction>
249 </xs:simpleType>
250 <xs:simpleType name="contextname">
251 <xs:restriction base="xs:string">
252 <xs:enumeration value="Desktop"/>
253 <xs:enumeration value="Client"/>
254 <xs:enumeration value="Titlebar"/>
255 <xs:enumeration value="Handle"/>
256 <xs:enumeration value="Frame"/>
257 <xs:enumeration value="TLCorner"/>
258 <xs:enumeration value="TRCorner"/>
259 <xs:enumeration value="BLCorner"/>
260 <xs:enumeration value="BRCorner"/>
261 <xs:enumeration value="Maximize"/>
262 <xs:enumeration value="AllDesktops"/>
263 <xs:enumeration value="Shade"/>
264 <xs:enumeration value="Iconify"/>
265 <xs:enumeration value="Icon"/>
266 <xs:enumeration value="Close"/>
267 <xs:enumeration value="MoveResize"/>
268 </xs:restriction>
269 </xs:simpleType>
270 <xs:simpleType name="button">
271 <xs:restriction base="xs:string">
272 <xs:enumeration value="Left"/>
273 <xs:enumeration value="Middle"/>
274 <xs:enumeration value="Right"/>
275 <xs:enumeration value="Up"/>
276 <xs:enumeration value="Down"/>
277 <xs:enumeration value="A-Left"/>
278 <xs:enumeration value="A-Middle"/>
279 <xs:enumeration value="A-Right"/>
280 <xs:enumeration value="A-Up"/>
281 <xs:enumeration value="A-Down"/>
282 <xs:enumeration value="C-A-Left"/>
283 <xs:enumeration value="C-A-Middle"/>
284 <xs:enumeration value="C-A-Right"/>
285 <xs:enumeration value="C-A-Up"/>
286 <xs:enumeration value="C-A-Down"/>
287 </xs:restriction>
288 </xs:simpleType>
289 <xs:simpleType name="mouseaction">
290 <xs:restriction base="xs:string">
291 <xs:enumeration value="Click"/>
292 <xs:enumeration value="DoubleClick"/>
293 <xs:enumeration value="Drag"/>
294 <xs:enumeration value="Press"/>
295 <xs:enumeration value="Release"/>
296 </xs:restriction>
297 </xs:simpleType>
298 <xs:simpleType name="actionname">
299 <xs:restriction base="xs:string">
300 <xs:enumeration value="Activate"/>
301 <xs:enumeration value="Close"/>
302 <xs:enumeration value="Desktop"/>
303 <xs:enumeration value="DesktopDown"/>
304 <xs:enumeration value="DesktopLast"/>
305 <xs:enumeration value="DesktopLeft"/>
306 <xs:enumeration value="DesktopNext"/>
307 <xs:enumeration value="DesktopPrevious"/>
308 <xs:enumeration value="DesktopRight"/>
309 <xs:enumeration value="DesktopUp"/>
310 <xs:enumeration value="DirectionalFocusEast"/>
311 <xs:enumeration value="DirectionalFocusNorth"/>
312 <xs:enumeration value="DirectionalFocusNortheast"/>
313 <xs:enumeration value="DirectionalFocusNorthwest"/>
314 <xs:enumeration value="DirectionalFocusSouth"/>
315 <xs:enumeration value="DirectionalFocusSoutheast"/>
316 <xs:enumeration value="DirectionalFocusSouthwest"/>
317 <xs:enumeration value="DirectionalFocusWest"/>
318 <xs:enumeration value="Execute"/>
319 <xs:enumeration value="Exit"/>
320 <xs:enumeration value="Focus"/>
321 <xs:enumeration value="FocusToBottom"/>
322 <xs:enumeration value="GrowToEdgeEast"/>
323 <xs:enumeration value="GrowToEdgeNorth"/>
324 <xs:enumeration value="GrowToEdgeSouth"/>
325 <xs:enumeration value="GrowToEdgeWest"/>
326 <xs:enumeration value="Iconify"/>
327 <xs:enumeration value="Kill"/>
328 <xs:enumeration value="Lower"/>
329 <xs:enumeration value="MaximizeFull"/>
330 <xs:enumeration value="MaximizeHorz"/>
331 <xs:enumeration value="MaximizeVert"/>
332 <xs:enumeration value="Move"/>
333 <xs:enumeration value="MoveRelativeHorz"/>
334 <xs:enumeration value="MoveRelativeVert"/>
335 <xs:enumeration value="MoveToEdgeEast"/>
336 <xs:enumeration value="MoveToEdgeNorth"/>
337 <xs:enumeration value="MoveToEdgeSouth"/>
338 <xs:enumeration value="MoveToEdgeWest"/>
339 <xs:enumeration value="NextWindow"/>
340 <xs:enumeration value="NextWindowLinear"/>
341 <xs:enumeration value="PreviousWindow"/>
342 <xs:enumeration value="PreviousWindowLinear"/>
343 <xs:enumeration value="Raise"/>
344 <xs:enumeration value="RaiseLower"/>
345 <xs:enumeration value="Resize"/>
346 <xs:enumeration value="ResizeRelativeHorz"/>
347 <xs:enumeration value="ResizeRelativeVert"/>
348 <xs:enumeration value="Restart"/>
349 <xs:enumeration value="SendToBottomLayer"/>
350 <xs:enumeration value="SendToDesktop"/>
351 <xs:enumeration value="SendToDesktopDown"/>
352 <xs:enumeration value="SendToDesktopLeft"/>
353 <xs:enumeration value="SendToDesktopNext"/>
354 <xs:enumeration value="SendToDesktopPrevious"/>
355 <xs:enumeration value="SendToDesktopRight"/>
356 <xs:enumeration value="SendToDesktopUp"/>
357 <xs:enumeration value="SendToNormalLayer"/>
358 <xs:enumeration value="SendToTopLayer"/>
359 <xs:enumeration value="Shade"/>
360 <xs:enumeration value="ShadeLower"/>
361 <xs:enumeration value="ShowDesktop"/>
362 <xs:enumeration value="ShowMenu"/>
363 <xs:enumeration value="ToggleAlwaysOnBottom"/>
364 <xs:enumeration value="ToggleAlwaysOnTop"/>
365 <xs:enumeration value="ToggleDecorations"/>
366 <xs:enumeration value="ToggleFullscreen"/>
367 <xs:enumeration value="ToggleMaximizeFull"/>
368 <xs:enumeration value="ToggleMaximizeHorz"/>
369 <xs:enumeration value="ToggleMaximizeVert"/>
370 <xs:enumeration value="ToggleOmnipresent"/>
371 <xs:enumeration value="ToggleShade"/>
372 <xs:enumeration value="ToggleShowDesktop"/>
373 <xs:enumeration value="Unfocus"/>
374 <xs:enumeration value="UnmaximizeFull"/>
375 <xs:enumeration value="UnmaximizeHorz"/>
376 <xs:enumeration value="UnmaximizeVert"/>
377 <xs:enumeration value="Unshade"/>
378 <xs:enumeration value="UnshadeRaise"/>
379 <xs:enumeration value="UnShowDesktop"/>
380 </xs:restriction>
381 </xs:simpleType>
382 </xs:schema>
This page took 0.057007 seconds and 5 git commands to generate.