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