]> Dogcows Code - chaz/openbox/blob - data/rc.xsd
don't use the timestamp and such fields when the _NET_ACTIVE_WINDOW is using the...
[chaz/openbox] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2
3 <!-- XML Schema for the Openbox window manager configuration file -->
4
5 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6 targetNamespace="http://openbox.org/4.0/rc"
7 xmlns:ob="http://openbox.org/4.0/rc"
8 elementFormDefault="qualified">
9 <!--
10 root node
11 -->
12 <xsd:element name="openbox_config">
13 <xsd:annotation>
14 <xsd:documentation>all these elements are expected in a openbox config file</xsd:documentation>
15 </xsd:annotation>
16 <xsd:complexType>
17 <xsd:element name="resistance" type="ob:resistance"/>
18 <xsd:element name="focus" type="ob:focus"/>
19 <xsd:element name="placement" type="ob:placement"/>
20 <xsd:element name="theme" type="ob:theme"/>
21 <xsd:element name="desktops" type="ob:desktops"/>
22 <xsd:element name="resize" type="ob:resize"/>
23 <xsd:element name="dock" type="ob:dock"/>
24 <xsd:element name="keyboard" type="ob:keyboard"/>
25 <xsd:element name="mouse" type="ob:mouse"/>
26 <xsd:element name="menu" type="ob:menu"/>
27 <xsd:element name="applications" type="ob:applications"/>
28 </xsd:complexType>
29 </xsd:element>
30 <!--
31 complex types
32 -->
33 <xsd:complexType name="resistance">
34 <xsd:annotation>
35 <xsd:documentation>defines behaviour of windows when close to each other or the screen edge</xsd:documentation>
36 </xsd:annotation>
37 <xsd:element minOccurs="0" name="strength" type="xsd:integer"/>
38 <xsd:element minOccurs="0" name="screen_edge_strength" type="xsd:integer"/>
39 </xsd:complexType>
40 <xsd:complexType name="focus">
41 <xsd:annotation>
42 <xsd:documentation>defines aspects of window focus</xsd:documentation>
43 </xsd:annotation>
44 <xsd:element minOccurs="0" name="focusNew" type="ob:bool"/>
45 <xsd:element minOccurs="0" name="focusLast" type="ob:bool"/>
46 <xsd:element minOccurs="0" name="followMouse" type="ob:bool"/>
47 <xsd:element minOccurs="0" name="focusDelay" type="xsd:integer"/>
48 <xsd:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/>
49 </xsd:complexType>
50 <xsd:complexType name="placement">
51 <xsd:annotation>
52 <xsd:documentation>defines how new windows are placed</xsd:documentation>
53 </xsd:annotation>
54 <xsd:element name="policy" type="ob:placementpolicy"/>
55 </xsd:complexType>
56 <xsd:complexType name="theme">
57 <xsd:element minOccurs="0" name="name" type="xsd:string"/>
58 <xsd:element minOccurs="0" name="titleLayout" type="xsd:string"/>
59 <xsd:element minOccurs="0" name="titleNumber" type="ob:bool"/>
60 <xsd:element minOccurs="0" name="keepBorder" type="ob:bool"/>
61 <xsd:element minOccurs="0" name="animateIconify" type="ob:bool"/>
62 <xsd:element minOccurs="0" name="font" type="ob:font"/>
63 </xsd:complexType>
64 <xsd:complexType name="font">
65 <xsd:element minOccurs="0" name="name" type="xsd:string"/>
66 <xsd:element minOccurs="0" name="size" type="xsd:integer"/>
67 <xsd:element minOccurs="0" name="weight" type="ob:fontweight"/>
68 <xsd:element minOccurs="0" name="slant" type="ob:fontslant"/>
69 <xsd:attribute name="place" type="ob:fontplace" use="required"/>
70 </xsd:complexType>
71 <xsd:complexType name="desktops">
72 <xsd:annotation>
73 <xsd:documentation>defines the number and names of desktops</xsd:documentation>
74 </xsd:annotation>
75 <xsd:element minOccurs="0" name="number" type="xsd:integer"/>
76 <xsd:element minOccurs="0" name="firstdesk" type="xsd:integer"/>
77 <xsd:element minOccurs="0" name="names">
78 <xsd:complexType>
79 <xsd:element maxOccurs="unbounded" name="name" type="xsd:string"/>
80 </xsd:complexType>
81 </xsd:element>
82 </xsd:complexType>
83 <xsd:complexType name="resize">
84 <xsd:element minOccurs="0" name="drawContents" type="ob:bool"/>
85 <xsd:element minOccurs="0" name="popupShow" type="ob:popupshow"/>
86 <xsd:element minOccurs="0" name="popupPosition" type="ob:popupposition"/>
87 </xsd:complexType>
88 <xsd:complexType name="dock">
89 <xsd:element minOccurs="0" name="position" type="ob:dock_position"/>
90 <xsd:element minOccurs="0" name="floatingX" type="xsd:integer"/>
91 <xsd:element minOccurs="0" name="floatingY" type="xsd:integer"/>
92 <xsd:element minOccurs="0" name="noStrut" type="ob:bool"/>
93 <xsd:element minOccurs="0" name="stacking" type="ob:layer"/>
94 <xsd:element minOccurs="0" name="direction" type="ob:direction"/>
95 <xsd:element minOccurs="0" name="autoHide" type="ob:bool"/>
96 <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
97 <xsd:element minOccurs="0" name="showDelay" type="xsd:integer"/>
98 <xsd:element minOccurs="0" name="moveButton" type="ob:button"/>
99 </xsd:complexType>
100 <xsd:complexType name="action">
101 <xsd:element minOccurs="0" name="execute" type="xsd:string"/>
102 <xsd:element minOccurs="0" name="menu" type="xsd:string"/>
103 <xsd:element minOccurs="0" name="delta" type="xsd:integer"/>
104 <xsd:element minOccurs="0" name="x" type="xsd:integer"/>
105 <xsd:element minOccurs="0" name="y" type="xsd:integer"/>
106 <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
107 <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
108 <xsd:element minOccurs="0" name="up" type="xsd:integer"/>
109 <xsd:element minOccurs="0" name="down" type="xsd:integer"/>
110 <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
111 <xsd:element minOccurs="0" name="wrap" type="ob:bool"/>
112 <xsd:element minOccurs="0" name="follow" type="ob:bool"/>
113 <xsd:element minOccurs="0" name="dialog" type="ob:bool"/>
114 <xsd:element minOccurs="0" name="panels" type="ob:bool"/>
115 <xsd:element minOccurs="0" name="here" type="ob:bool"/>
116 <xsd:element minOccurs="0" name="linear" type="ob:bool"/>
117 <xsd:element minOccurs="0" name="group" type="ob:bool"/>
118 <xsd:attribute name="name" type="ob:actionname" use="required"/>
119 </xsd:complexType>
120 <xsd:complexType name="keybind">
121 <xsd:choice>
122 <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
123 <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
124 </xsd:choice>
125 <xsd:attribute name="chroot" type="ob:bool"/>
126 <xsd:attribute name="key" type="ob:keyname" use="required"/>
127 </xsd:complexType>
128 <xsd:complexType name="keyboard">
129 <xsd:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/>
130 <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
131 </xsd:complexType>
132 <xsd:complexType name="mousebind">
133 <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
134 <xsd:attribute name="action" type="ob:mouseaction" use="required"/>
135 <xsd:attribute name="button" type="ob:button" use="required"/>
136 </xsd:complexType>
137 <xsd:complexType name="context">
138 <xsd:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
139 <xsd:attribute name="name" type="ob:contextname" use="required"/>
140 </xsd:complexType>
141 <xsd:complexType name="mouse">
142 <xsd:element minOccurs="0" name="dragThreshold" type="xsd:integer"/>
143 <xsd:element minOccurs="0" name="doubleClickTime" type="xsd:integer"/>
144 <xsd:element maxOccurs="unbounded" name="context" type="ob:context"/>
145 </xsd:complexType>
146 <xsd:complexType name="menu">
147 <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
148 <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
149 <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
150 <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
151 <xsd:element minOccurs="0" name="applicationIcons" type="ob:bool"/>
152 </xsd:complexType>
153 <xsd:complexType name="window_position">
154 <xsd:element name="x" type="ob:center_or_int"/>
155 <xsd:element name="y" type="ob:center_or_int"/>
156 <xsd:element name="monitor" type="ob:mouse_or_int"/>
157 <xsd:element minOccurs="0" name="head" type="xsd:string"/>
158 </xsd:complexType>
159 <xsd:complexType name="application">
160 <xsd:element minOccurs="0" name="decor" type="xsd:bool"/>
161 <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
162 <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
163 <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
164 <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
165 <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
166 <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
167 <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
168 <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
169 <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
170 <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
171 <!-- at least one of these must be present -->
172 <xsd:attribute name="name" type="xsd:string"/>
173 <xsd:attribute name="class" type="xsd:string"/>
174 <xsd:attribute name="role" type="xsd:string"/>
175 </xsd:complexType>
176 <xsd:complexType name="applications">
177 <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
178 </xsd:complexType>
179 <!--
180 simple types / restrictions
181 -->
182 <xsd:simpleType name="actionname">
183 <xsd:restriction base="xsd:string">
184 <xsd:enumeration value="Activate"/>
185 <xsd:enumeration value="BreakChroot"/>
186 <xsd:enumeration value="Close"/>
187 <xsd:enumeration value="Desktop"/>
188 <xsd:enumeration value="DesktopDown"/>
189 <xsd:enumeration value="DesktopLast"/>
190 <xsd:enumeration value="DesktopLeft"/>
191 <xsd:enumeration value="DesktopNext"/>
192 <xsd:enumeration value="DesktopPrevious"/>
193 <xsd:enumeration value="DesktopRight"/>
194 <xsd:enumeration value="DesktopUp"/>
195 <xsd:enumeration value="DirectionalFocusEast"/>
196 <xsd:enumeration value="DirectionalFocusNorth"/>
197 <xsd:enumeration value="DirectionalFocusNortheast"/>
198 <xsd:enumeration value="DirectionalFocusNorthwest"/>
199 <xsd:enumeration value="DirectionalFocusSouth"/>
200 <xsd:enumeration value="DirectionalFocusSoutheast"/>
201 <xsd:enumeration value="DirectionalFocusSouthwest"/>
202 <xsd:enumeration value="DirectionalFocusWest"/>
203 <xsd:enumeration value="Execute"/>
204 <xsd:enumeration value="Exit"/>
205 <xsd:enumeration value="Focus"/>
206 <xsd:enumeration value="FocusToBottom"/>
207 <xsd:enumeration value="GrowToEdgeEast"/>
208 <xsd:enumeration value="GrowToEdgeNorth"/>
209 <xsd:enumeration value="GrowToEdgeSouth"/>
210 <xsd:enumeration value="GrowToEdgeWest"/>
211 <xsd:enumeration value="Iconify"/>
212 <xsd:enumeration value="Kill"/>
213 <xsd:enumeration value="Lower"/>
214 <xsd:enumeration value="MaximizeFull"/>
215 <xsd:enumeration value="MaximizeHorz"/>
216 <xsd:enumeration value="MaximizeVert"/>
217 <xsd:enumeration value="Move"/>
218 <xsd:enumeration value="MoveRelative"/>
219 <xsd:enumeration value="MoveRelativeHorz"/>
220 <xsd:enumeration value="MoveRelativeVert"/>
221 <xsd:enumeration value="MoveToCenter"/>
222 <xsd:enumeration value="MoveFromEdgeEast"/>
223 <xsd:enumeration value="MoveFromEdgeNorth"/>
224 <xsd:enumeration value="MoveFromEdgeSouth"/>
225 <xsd:enumeration value="MoveFromEdgeWest"/>
226 <xsd:enumeration value="MoveToEdgeEast"/>
227 <xsd:enumeration value="MoveToEdgeNorth"/>
228 <xsd:enumeration value="MoveToEdgeSouth"/>
229 <xsd:enumeration value="MoveToEdgeWest"/>
230 <xsd:enumeration value="NextWindow"/>
231 <xsd:enumeration value="PreviousWindow"/>
232 <xsd:enumeration value="Raise"/>
233 <xsd:enumeration value="RaiseLower"/>
234 <xsd:enumeration value="Reconfigure"/>
235 <xsd:enumeration value="Resize"/>
236 <xsd:enumeration value="ResizeRelative"/>
237 <xsd:enumeration value="ResizeRelativeHorz"/>
238 <xsd:enumeration value="ResizeRelativeVert"/>
239 <xsd:enumeration value="Restart"/>
240 <xsd:enumeration value="SendToBottomLayer"/>
241 <xsd:enumeration value="SendToDesktop"/>
242 <xsd:enumeration value="SendToDesktopDown"/>
243 <xsd:enumeration value="SendToDesktopLeft"/>
244 <xsd:enumeration value="SendToDesktopNext"/>
245 <xsd:enumeration value="SendToDesktopPrevious"/>
246 <xsd:enumeration value="SendToDesktopRight"/>
247 <xsd:enumeration value="SendToDesktopUp"/>
248 <xsd:enumeration value="SendToNormalLayer"/>
249 <xsd:enumeration value="SendToTopLayer"/>
250 <xsd:enumeration value="Shade"/>
251 <xsd:enumeration value="ShadeLower"/>
252 <xsd:enumeration value="ShowDesktop"/>
253 <xsd:enumeration value="ShowMenu"/>
254 <xsd:enumeration value="ToggleAlwaysOnBottom"/>
255 <xsd:enumeration value="ToggleAlwaysOnTop"/>
256 <xsd:enumeration value="ToggleDecorations"/>
257 <xsd:enumeration value="ToggleDockAutoHide"/>
258 <xsd:enumeration value="ToggleFullscreen"/>
259 <xsd:enumeration value="ToggleMaximizeFull"/>
260 <xsd:enumeration value="ToggleMaximizeHorz"/>
261 <xsd:enumeration value="ToggleMaximizeVert"/>
262 <xsd:enumeration value="ToggleOmnipresent"/>
263 <xsd:enumeration value="ToggleShade"/>
264 <xsd:enumeration value="ToggleShowDesktop"/>
265 <xsd:enumeration value="Unfocus"/>
266 <xsd:enumeration value="UnmaximizeFull"/>
267 <xsd:enumeration value="UnmaximizeHorz"/>
268 <xsd:enumeration value="UnmaximizeVert"/>
269 <xsd:enumeration value="Unshade"/>
270 <xsd:enumeration value="UnshadeRaise"/>
271 <xsd:enumeration value="UnShowDesktop"/>
272 </xsd:restriction>
273 </xsd:simpleType>
274 <xsd:simpleType name="bool">
275 <!-- this is copied to maximization. Keep that in sync. -->
276 <xsd:restriction base="xsd:string">
277 <xsd:enumeration value="yes"/>
278 <xsd:enumeration value="no"/>
279 <xsd:enumeration value="true"/>
280 <xsd:enumeration value="false"/>
281 <xsd:enumeration value="on"/>
282 <xsd:enumeration value="off"/>
283 </xsd:restriction>
284 </xsd:simpleType>
285 <xsd:simpleType name="fontplace">
286 <xsd:restriction base="xsd:string">
287 <xsd:enumeration value="ActiveWindow"/>
288 <xsd:enumeration value="InactiveWindow"/>
289 <xsd:enumeration value="MenuHeader"/>
290 <xsd:enumeration value="MenuItem"/>
291 <xsd:enumeration value="OnScreenDisplay"/>
292 </xsd:restriction>
293 </xsd:simpleType>
294 <xsd:simpleType name="fontweight">
295 <xsd:restriction base="xsd:string">
296 <xsd:enumeration value="normal"/>
297 <xsd:enumeration value="bold"/>
298 </xsd:restriction>
299 </xsd:simpleType>
300 <xsd:simpleType name="fontslant">
301 <xsd:restriction base="xsd:string">
302 <xsd:enumeration value="normal"/>
303 <xsd:enumeration value="italic"/>
304 <xsd:enumeration value="opaque"/>
305 </xsd:restriction>
306 </xsd:simpleType>
307 <xsd:simpleType name="button">
308 <xsd:restriction base="xsd:string">
309 <!-- FIXME what??? -->
310 <xsd:enumeration value="Left"/>
311 <xsd:enumeration value="Middle"/>
312 <xsd:enumeration value="Right"/>
313 <xsd:enumeration value="Up"/>
314 <xsd:enumeration value="Down"/>
315 <xsd:enumeration value="A-Left"/>
316 <xsd:enumeration value="A-Middle"/>
317 <xsd:enumeration value="A-Right"/>
318 <xsd:enumeration value="A-Up"/>
319 <xsd:enumeration value="A-Down"/>
320 <xsd:enumeration value="C-A-Left"/>
321 <xsd:enumeration value="C-A-Middle"/>
322 <xsd:enumeration value="C-A-Right"/>
323 <xsd:enumeration value="C-A-Up"/>
324 <xsd:enumeration value="C-A-Down"/>
325 </xsd:restriction>
326 </xsd:simpleType>
327 <xsd:simpleType name="center_or_int">
328 <xsd:restriction base="xsd:string">
329 <!-- ob: atoi($_) unless $_ eq 'center'; -->
330 <!-- I think the regexp DTRT WRT atoi. -->
331 <xsd:pattern value="center|0|[1-9][0-9]*"/>
332 </xsd:restriction>
333 </xsd:simpleType>
334 <xsd:simpleType name="mouse_or_int">
335 <xsd:restriction base="xsd:string">
336 <!-- ob: atoi($_) unless $_ eq 'center'; -->
337 <!-- I think the regexp DTRT WRT atoi. -->
338 <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
339 </xsd:restriction>
340 </xsd:simpleType>
341 <xsd:simpleType name="contextname">
342 <xsd:restriction base="xsd:string">
343 <xsd:enumeration value="Desktop"/>
344 <xsd:enumeration value="Root"/>
345 <xsd:enumeration value="Client"/>
346 <xsd:enumeration value="Titlebar"/>
347 <xsd:enumeration value="Frame"/>
348 <xsd:enumeration value="TLCorner"/>
349 <xsd:enumeration value="TRCorner"/>
350 <xsd:enumeration value="BLCorner"/>
351 <xsd:enumeration value="BRCorner"/>
352 <xsd:enumeration value="Top"/>
353 <xsd:enumeration value="Bottom"/>
354 <xsd:enumeration value="Left"/>
355 <xsd:enumeration value="Right"/>
356 <xsd:enumeration value="Maximize"/>
357 <xsd:enumeration value="AllDesktops"/>
358 <xsd:enumeration value="Shade"/>
359 <xsd:enumeration value="Iconify"/>
360 <xsd:enumeration value="Icon"/>
361 <xsd:enumeration value="Close"/>
362 <xsd:enumeration value="MoveResize"/>
363 </xsd:restriction>
364 </xsd:simpleType>
365 <xsd:simpleType name="direction">
366 <xsd:restriction base="xsd:string">
367 <xsd:enumeration value="Horizontal"/>
368 <xsd:enumeration value="Vertical"/>
369 </xsd:restriction>
370 </xsd:simpleType>
371 <xsd:simpleType name="dock_position">
372 <xsd:restriction base="xsd:string">
373 <xsd:enumeration value="TopLeft"/>
374 <xsd:enumeration value="Top"/>
375 <xsd:enumeration value="TopRight"/>
376 <xsd:enumeration value="Right"/>
377 <xsd:enumeration value="BottomRight"/>
378 <xsd:enumeration value="Bottom"/>
379 <xsd:enumeration value="BottomLeft"/>
380 <xsd:enumeration value="Left"/>
381 <xsd:enumeration value="Floating"/>
382 </xsd:restriction>
383 </xsd:simpleType>
384 <xsd:simpleType name="keyname">
385 <xsd:restriction base="xsd:string">
386 <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
387 <!-- how do we do all substrings and permutations? -->
388 <xsd:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
389 </xsd:restriction>
390 </xsd:simpleType>
391 <xsd:simpleType name="layer">
392 <xsd:restriction base="xsd:string">
393 <xsd:enumeration value="Above"/>
394 <xsd:enumeration value="Normal"/>
395 <xsd:enumeration value="Below"/>
396 </xsd:restriction>
397 </xsd:simpleType>
398 <xsd:simpleType name="maximization">
399 <xsd:restriction base="xsd:string">
400 <xsd:enumeration value="Horizontal"/>
401 <xsd:enumeration value="Vertical"/>
402 <!-- this is a copy of ob:bool. Keep it in sync. -->
403 <xsd:enumeration value="yes"/>
404 <xsd:enumeration value="no"/>
405 <xsd:enumeration value="true"/>
406 <xsd:enumeration value="false"/>
407 <xsd:enumeration value="on"/>
408 <xsd:enumeration value="off"/>
409 </xsd:restriction>
410 </xsd:simpleType>
411 <xsd:simpleType name="mouseaction">
412 <xsd:restriction base="xsd:string">
413 <xsd:enumeration value="Click"/>
414 <xsd:enumeration value="DoubleClick"/>
415 <xsd:enumeration value="Drag"/>
416 <xsd:enumeration value="Press"/>
417 <xsd:enumeration value="Release"/>
418 </xsd:restriction>
419 </xsd:simpleType>
420 <xsd:simpleType name="placementpolicy">
421 <xsd:restriction base="xsd:string">
422 <xsd:enumeration value="Smart"/>
423 <xsd:enumeration value="UnderMouse"/>
424 </xsd:restriction>
425 </xsd:simpleType>
426 <xsd:simpleType name="popupposition">
427 <xsd:restriction base="xsd:string">
428 <xsd:enumeration value="Top"/>
429 <xsd:enumeration value="Center"/>
430 </xsd:restriction>
431 </xsd:simpleType>
432 <xsd:simpleType name="popupshow">
433 <xsd:restriction base="xsd:string">
434 <xsd:enumeration value="Always"/>
435 <xsd:enumeration value="Never"/>
436 <xsd:enumeration value="Nonpixel"/>
437 </xsd:restriction>
438 </xsd:simpleType>
439 </xsd:schema>
This page took 0.060405 seconds and 4 git commands to generate.