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