]> icculus.org git repositories - dana/openbox.git/blob - data/rc.xsd
add back the focusLast option for the "i lost count"th time
[dana/openbox.git] / 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 -->
30 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
31     targetNamespace="http://openbox.org/"
32     xmlns:ob="http://openbox.org/"
33     elementFormDefault="qualified">
34     <!--
35          root node
36       -->
37     <xs:element name="openbox_config">
38         <xs:annotation>
39             <xs:documentation>all these elements are expected in a openbox config file</xs:documentation>
40         </xs:annotation>
41         <xs:complexType>
42             <xs:sequence>
43                 <xs:element name="resistance" type="ob:resistance"/>
44                 <xs:element name="focus" type="ob:focus"/>
45                 <xs:element name="placement" type="ob:placement"/>
46                 <xs:element name="theme" type="ob:theme"/>
47                 <xs:element name="desktops" type="ob:desktops"/>
48                 <xs:element name="resize" type="ob:resize"/>
49                 <xs:element name="dock" type="ob:dock"/>
50                 <xs:element name="keyboard" type="ob:keyboard"/>
51                 <xs:element name="mouse" type="ob:mouse"/>
52                 <xs:element name="menu" type="ob:menu"/>
53             </xs:sequence>
54         </xs:complexType>
55     </xs:element>
56     <!--
57          complex types
58       -->
59     <xs:complexType name="resistance">
60         <xs:annotation>
61             <xs:documentation>defines behaviour of windows when close to eachother or the screen edge</xs:documentation>
62         </xs:annotation>
63         <xs:sequence>
64             <xs:element name="strength" type="xs:integer"/>
65             <xs:element name="screen_edge_strength" type="xs:integer"/>
66         </xs:sequence>
67     </xs:complexType>
68     <xs:complexType name="focus">
69         <xs:annotation>
70             <xs:documentation>defines aspects of window focus</xs:documentation>
71         </xs:annotation>
72         <xs:sequence>
73             <xs:element name="focusNew" type="ob:yesorno"/>
74             <xs:element name="focusLast" type="ob:yesorno"/>
75             <xs:element name="followMouse" type="ob:yesorno"/>
76             <xs:element name="focusDelay" type="xs:integer"/>
77             <xs:element name="raiseOnFocus" type="ob:yesorno"/>
78         </xs:sequence>
79     </xs:complexType>
80     <xs:complexType name="placement">
81         <xs:annotation>
82             <xs:documentation>defines how new windows are placed</xs:documentation>
83         </xs:annotation>
84         <xs:sequence>
85             <xs:element name="policy" type="ob:placementpolicy"/>
86         </xs:sequence>
87     </xs:complexType>
88     <xs:complexType name="theme">
89         <xs:sequence>
90             <xs:element name="name" type="xs:string"/>
91             <xs:element name="titlelayout" type="xs:string"/>
92         </xs:sequence>
93     </xs:complexType>
94     <xs:complexType name="desktops">
95         <xs:sequence>
96             <xs:element name="number" type="xs:integer"/>
97             <xs:element name="names">
98                 <xs:complexType>
99                     <xs:sequence>
100                         <xs:element maxOccurs="unbounded" name="name" type="xs:string"/>
101                     </xs:sequence>
102                 </xs:complexType>
103             </xs:element>
104             <xs:element name="firstdesk" type="xs:integer"/>
105         </xs:sequence>
106     </xs:complexType>
107     <xs:complexType name="resize">
108         <xs:sequence>
109             <xs:element name="drawContents" type="ob:yesorno"/>
110         </xs:sequence>
111     </xs:complexType>
112     <xs:complexType name="dock">
113         <xs:sequence>
114             <xs:element name="position" type="ob:position"/>
115             <xs:element name="stacking" type="ob:stacking"/>
116             <xs:element name="direction" type="ob:direction"/>
117             <xs:element name="floatingX" type="xs:integer"/>
118             <xs:element name="floatingY" type="xs:integer"/>
119             <xs:element name="autoHide" type="ob:yesorno"/>
120             <xs:element name="hideDelay" type="xs:integer"/>
121             <xs:element name="moveButton" type="ob:button"/>
122         </xs:sequence>
123     </xs:complexType>
124     <xs:complexType name="action">
125         <xs:sequence>
126             <xs:element minOccurs="0" name="menu" type="xs:string"/>
127             <xs:element minOccurs="0" name="desktop" type="xs:integer"/>
128             <xs:element minOccurs="0" name="follow" type="ob:yesorno"/>
129             <xs:element minOccurs="0" name="execute" type="xs:string"/>
130             <xs:element minOccurs="0" name="dialog" type="ob:yesorno"/>
131         </xs:sequence>
132         <xs:attribute name="name" type="ob:actionname" use="required"/>
133     </xs:complexType>
134     <xs:complexType name="keybind">
135         <xs:sequence>
136             <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
137         </xs:sequence>
138         <xs:attribute name="key" type="ob:keyname" use="required"/>
139     </xs:complexType>
140     <xs:complexType name="keyboard">
141         <xs:sequence>
142             <xs:element name="chainQuitKey" type="ob:keyname"/>
143             <xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
144         </xs:sequence>
145     </xs:complexType>
146     <xs:complexType name="mousebind">
147         <xs:sequence>
148             <xs:element maxOccurs="unbounded" name="action" type="ob:action"/>
149         </xs:sequence>
150         <xs:attribute name="action" type="ob:mouseaction" use="required"/>
151         <xs:attribute name="button" type="ob:button" use="required"/>
152     </xs:complexType>
153     <xs:complexType name="context">
154         <xs:sequence>
155             <xs:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
156         </xs:sequence>
157         <xs:attribute name="name" type="ob:contextname" use="required"/>
158     </xs:complexType>
159     <xs:complexType name="mouse">
160         <xs:sequence>
161             <xs:element name="dragThreshold" type="xs:integer"/>
162             <xs:element name="doubleClickTime" type="xs:integer"/>
163             <xs:element maxOccurs="unbounded" name="context" type="ob:context"/>
164         </xs:sequence>
165     </xs:complexType>
166     <xs:complexType name="menu">
167         <xs:sequence>
168             <xs:element maxOccurs="unbounded" name="file" type="xs:string"/>
169         </xs:sequence>
170     </xs:complexType>
171     <!--
172          simple types / restrictions
173       -->
174     <xs:simpleType name="yesorno">
175         <xs:restriction base="xs:string">
176             <xs:enumeration value="yes"/>
177             <xs:enumeration value="no"/>
178         </xs:restriction>
179     </xs:simpleType>
180     <xs:simpleType name="placementpolicy">
181         <xs:restriction base="xs:string">
182             <xs:enumeration value="Smart"/>
183             <xs:enumeration value="UnderMouse"/>
184         </xs:restriction>
185     </xs:simpleType>
186     <xs:simpleType name="position">
187         <xs:restriction base="xs:string">
188             <xs:enumeration value="TopLeft"/>
189             <xs:enumeration value="Top"/>
190             <xs:enumeration value="TopRight"/>
191             <xs:enumeration value="Right"/>
192             <xs:enumeration value="BottomRight"/>
193             <xs:enumeration value="Bottom"/>
194             <xs:enumeration value="BottomLeft"/>
195             <xs:enumeration value="Left"/>
196             <xs:enumeration value="Floating"/>
197         </xs:restriction>
198     </xs:simpleType>
199     <xs:simpleType name="stacking">
200         <xs:restriction base="xs:string">
201             <xs:enumeration value="Top"/>
202             <xs:enumeration value="Normal"/>
203             <xs:enumeration value="Bottom"/>
204         </xs:restriction>
205     </xs:simpleType>
206     <xs:simpleType name="direction">
207         <xs:restriction base="xs:string">
208             <xs:enumeration value="Horizontal"/>
209             <xs:enumeration value="Vertical"/>
210         </xs:restriction>
211     </xs:simpleType>
212     <xs:simpleType name="keyname">
213         <xs:restriction base="xs:string">
214             <xs:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
215         </xs:restriction>
216     </xs:simpleType>
217     <xs:simpleType name="contextname">
218         <xs:restriction base="xs:string">
219             <xs:enumeration value="Desktop"/>
220             <xs:enumeration value="Client"/>
221             <xs:enumeration value="Titlebar"/>
222             <xs:enumeration value="Handle"/>
223             <xs:enumeration value="Frame"/>
224             <xs:enumeration value="TLCorner"/>
225             <xs:enumeration value="TRCorner"/>
226             <xs:enumeration value="BLCorner"/>
227             <xs:enumeration value="BRCorner"/>
228             <xs:enumeration value="Maximize"/>
229             <xs:enumeration value="AllDesktops"/>
230             <xs:enumeration value="Shade"/>
231             <xs:enumeration value="Iconify"/>
232             <xs:enumeration value="Icon"/>
233             <xs:enumeration value="Close"/>
234             <xs:enumeration value="MoveResize"/>
235         </xs:restriction>
236     </xs:simpleType>
237     <xs:simpleType name="button">
238         <xs:restriction base="xs:string">
239             <xs:enumeration value="Left"/>
240             <xs:enumeration value="Middle"/>
241             <xs:enumeration value="Right"/>
242             <xs:enumeration value="Up"/>
243             <xs:enumeration value="Down"/>
244             <xs:enumeration value="A-Left"/>
245             <xs:enumeration value="A-Middle"/>
246             <xs:enumeration value="A-Right"/>
247             <xs:enumeration value="A-Up"/>
248             <xs:enumeration value="A-Down"/>
249             <xs:enumeration value="C-A-Left"/>
250             <xs:enumeration value="C-A-Middle"/>
251             <xs:enumeration value="C-A-Right"/>
252             <xs:enumeration value="C-A-Up"/>
253             <xs:enumeration value="C-A-Down"/>
254         </xs:restriction>
255     </xs:simpleType>
256     <xs:simpleType name="mouseaction">
257         <xs:restriction base="xs:string">
258             <xs:enumeration value="Click"/>
259             <xs:enumeration value="DoubleClick"/>
260             <xs:enumeration value="Drag"/>
261             <xs:enumeration value="Press"/>
262             <xs:enumeration value="Release"/>
263         </xs:restriction>
264     </xs:simpleType>
265     <xs:simpleType name="actionname">
266         <xs:restriction base="xs:string">
267             <xs:enumeration value="Activate"/>
268             <xs:enumeration value="Close"/>
269             <xs:enumeration value="Desktop"/>
270             <xs:enumeration value="DesktopDown"/>
271             <xs:enumeration value="DesktopLast"/>
272             <xs:enumeration value="DesktopLeft"/>
273             <xs:enumeration value="DesktopNext"/>
274             <xs:enumeration value="DesktopPrevious"/>
275             <xs:enumeration value="DesktopRight"/>
276             <xs:enumeration value="DesktopUp"/>
277             <xs:enumeration value="DirectionalFocusEast"/>
278             <xs:enumeration value="DirectionalFocusNorth"/>
279             <xs:enumeration value="DirectionalFocusNortheast"/>
280             <xs:enumeration value="DirectionalFocusNorthwest"/>
281             <xs:enumeration value="DirectionalFocusSouth"/>
282             <xs:enumeration value="DirectionalFocusSoutheast"/>
283             <xs:enumeration value="DirectionalFocusSouthwest"/>
284             <xs:enumeration value="DirectionalFocusWest"/>
285             <xs:enumeration value="Execute"/>
286             <xs:enumeration value="Exit"/>
287             <xs:enumeration value="Focus"/>
288             <xs:enumeration value="GrowToEdgeEast"/>
289             <xs:enumeration value="GrowToEdgeNorth"/>
290             <xs:enumeration value="GrowToEdgeSouth"/>
291             <xs:enumeration value="GrowToEdgeWest"/>
292             <xs:enumeration value="Iconify"/>
293             <xs:enumeration value="Kill"/>
294             <xs:enumeration value="Lower"/>
295             <xs:enumeration value="MaximizeFull"/>
296             <xs:enumeration value="MaximizeHorz"/>
297             <xs:enumeration value="MaximizeVert"/>
298             <xs:enumeration value="Move"/>
299             <xs:enumeration value="MoveRelativeHorz"/>
300             <xs:enumeration value="MoveRelativeVert"/>
301             <xs:enumeration value="MoveToEdgeEast"/>
302             <xs:enumeration value="MoveToEdgeNorth"/>
303             <xs:enumeration value="MoveToEdgeSouth"/>
304             <xs:enumeration value="MoveToEdgeWest"/>
305             <xs:enumeration value="NextWindow"/>
306             <xs:enumeration value="NextWindowLinear"/>
307             <xs:enumeration value="PreviousWindow"/>
308             <xs:enumeration value="PreviousWindowLinear"/>
309             <xs:enumeration value="Raise"/>
310             <xs:enumeration value="RaiseLower"/>
311             <xs:enumeration value="Resize"/>
312             <xs:enumeration value="ResizeRelativeHorz"/>
313             <xs:enumeration value="ResizeRelativeVert"/>
314             <xs:enumeration value="Restart"/>
315             <xs:enumeration value="SendToBottomLayer"/>
316             <xs:enumeration value="SendToDesktop"/>
317             <xs:enumeration value="SendToDesktopDown"/>
318             <xs:enumeration value="SendToDesktopLeft"/>
319             <xs:enumeration value="SendToDesktopNext"/>
320             <xs:enumeration value="SendToDesktopPrevious"/>
321             <xs:enumeration value="SendToDesktopRight"/>
322             <xs:enumeration value="SendToDesktopUp"/>
323             <xs:enumeration value="SendToNormalLayer"/>
324             <xs:enumeration value="SendToTopLayer"/>
325             <xs:enumeration value="Shade"/>
326             <xs:enumeration value="ShadeLower"/>
327             <xs:enumeration value="ShowDesktop"/>
328             <xs:enumeration value="ShowMenu"/>
329             <xs:enumeration value="ToggleAlwaysOnBottom"/>
330             <xs:enumeration value="ToggleAlwaysOnTop"/>
331             <xs:enumeration value="ToggleDecorations"/>
332             <xs:enumeration value="ToggleMaximizeFull"/>
333             <xs:enumeration value="ToggleMaximizeHorz"/>
334             <xs:enumeration value="ToggleMaximizeVert"/>
335             <xs:enumeration value="ToggleOmnipresent"/>
336             <xs:enumeration value="ToggleShade"/>
337             <xs:enumeration value="ToggleShowDesktop"/>
338             <xs:enumeration value="Unfocus"/>
339             <xs:enumeration value="UnmaximizeFull"/>
340             <xs:enumeration value="UnmaximizeHorz"/>
341             <xs:enumeration value="UnmaximizeVert"/>
342             <xs:enumeration value="Unshade"/>
343             <xs:enumeration value="UnshadeRaise"/>
344             <xs:enumeration value="UnShowDesktop"/>
345         </xs:restriction>
346     </xs:simpleType>
347 </xs:schema>