ec4d71c0d433e14f60efa2fed654dca65b2ceecb
[mikachu/openbox.git] / data / rc.xml.in
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- Do not edit this file, it will be overwritten on install.
4         Copy the file to $HOME/.openbox/ instead. -->
5
6 <openbox_config xmlns="http://openbox/.org"
7         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8         xsi:schemaLocation="
9                 http://openbox.org/schema.php?type=rc&amp;version=@version@
10                 file://@xsddir@/rc.xsd">
11
12 <resistance>
13   <strength>10</strength>
14   <screen_edge_strength>20</screen_edge_strength>
15 </resistance>
16
17 <focus>
18   <focusNew>yes</focusNew>
19   <followMouse>no</followMouse>
20   <focusLast>yes</focusLast>
21   <focusDelay>0</focusDelay>
22   <raiseOnFocus>no</raiseOnFocus>
23 </focus>
24
25 <theme>
26   <name>TheBear</name>
27   <titlelayout>NLIMC</titlelayout>
28 </theme>
29
30 <desktops>
31   <number>4</number>
32   <names>
33     <name>one</name>
34     <name>two</name>
35     <name>three</name>
36     <name>four</name>
37   </names>
38 </desktops>
39
40 <resize>
41   <drawContents>yes</drawContents>
42 </resize>
43
44 <dock>
45   <position>topleft</position>
46   <stacking>top</stacking>
47   <direction>vertical</direction>
48   <floatingX>0</floatingX>
49   <floatingY>0</floatingY>
50   <autoHide>no</autoHide>
51   <hideTimeout>300</hideTimeout>
52 </dock>
53
54 <keyboard>
55   <chainQuitKey>C-g</chainQuitKey>
56
57   <keybind key="A-F10">
58     <action name="MaximizeFull"/>
59   </keybind>
60   <keybind key="A-F5">
61     <action name="UnmaximizeFull"/>
62   </keybind>
63   <keybind key="A-F12">
64     <action name="ToggleShade"/>
65   </keybind>
66   <keybind key="C-A-Left">
67     <action name="DesktopLeft"/>
68   </keybind>
69   <keybind key="C-A-Right">
70     <action name="DesktopRight"/>
71   </keybind>
72   <keybind key="C-A-Up">
73     <action name="DesktopUp"/>
74   </keybind>
75   <keybind key="C-A-Down">
76     <action name="DesktopDown"/>
77   </keybind>
78   <keybind key="S-A-Left">
79     <action name="SendToDesktopLeft"/>
80   </keybind>
81   <keybind key="S-A-Right">
82     <action name="SendToDesktopRight"/>
83   </keybind>
84   <keybind key="S-A-Up">
85     <action name="SendToDesktopUp"/>
86   </keybind>
87   <keybind key="S-A-Down">
88     <action name="SendToDesktopDown"/>
89   </keybind>
90   <keybind key="C-A-d">
91     <action name="ToggleShowDesktop"/>
92   </keybind>
93   <keybind key="A-F4">
94     <action name="Close"/>
95   </keybind>
96   <keybind key="A-Tab">
97     <action name="NextWindow"/>
98   </keybind>
99   <keybind key="A-S-Tab">
100     <action name="PreviousWindow"/>
101   </keybind>
102   <keybind key="A-F7">
103     <action name="Move"/>
104   </keybind>
105   <keybind key="A-F8">
106     <action name="Resize"/>
107   </keybind>
108   <keybind key="A-F9">
109     <action name="Iconify"/>
110   </keybind>
111   <keybind key="A-space">
112     <action name="ShowMenu"><menu>client-menu</menu></action>
113   </keybind>
114 </keyboard>
115
116 <mouse>
117   <dragThreshold>3</dragThreshold>
118   <doubleClickTime>200</doubleClickTime>
119
120   <context name="Frame">
121     <mousebind button="A-Left" action="Drag">
122       <action name="Move"/>
123     </mousebind>
124     <mousebind button="A-Left" action="Click">
125       <action name="Raise"/>
126     </mousebind>
127     <mousebind button="A-Left" action="Press">
128       <action name="Focus"/>
129     </mousebind>
130     <mousebind button="A-Middle" action="Drag">
131       <action name="Resize"/>
132     </mousebind> 
133     <mousebind button="A-Middle" action="Click">
134       <action name="Lower"/>
135     </mousebind>
136     <mousebind button="A-Right" action="Press">
137       <action name="ShowMenu"><menu>client-menu</menu></action>
138     </mousebind>
139     <mousebind button="A-Up" action="Click">
140       <action name="DesktopNext"/>
141     </mousebind>
142     <mousebind button="A-Down" action="Click">
143       <action name="DesktopPrevious"/>
144     </mousebind>
145     <mousebind button="C-A-Up" action="Click">
146       <action name="SendToDesktopNext"/>
147     </mousebind>
148     <mousebind button="C-A-Down" action="Click">
149       <action name="SendToDesktopPrevious"/>
150     </mousebind>
151   </context>
152   <context name="Titlebar">
153     <mousebind button="Left" action="Drag">
154       <action name="Move"/>
155     </mousebind>
156     <mousebind button="Left" action="Click">
157       <action name="Raise"/>
158     </mousebind>
159     <mousebind button="Left" action="Press">
160       <action name="Focus"/>
161     </mousebind>
162     <mousebind button="Left" action="DoubleClick">
163       <action name="ToggleShade"/>
164     </mousebind>
165     <mousebind button="Middle" action="Press">
166       <action name="Lower"/>
167     </mousebind>
168     <mousebind button="Up" action="Click">
169       <action name="Shade"/>
170     </mousebind>
171     <mousebind button="Down" action="Click">
172       <action name="Unshade"/>
173     </mousebind>
174     <mousebind button="Right" action="Press">
175       <action name="ShowMenu"><menu>client-menu</menu></action>
176     </mousebind>
177   </context>
178   <context name="Handle">
179     <mousebind button="Left" action="Drag">
180       <action name="Move"/>
181     </mousebind>
182     <mousebind button="Left" action="Click">
183       <action name="Raise"/>
184     </mousebind>
185     <mousebind button="Left" action="Press">
186       <action name="Focus"/>
187     </mousebind>
188     <mousebind button="Middle" action="Press">
189       <action name="Lower"/>
190     </mousebind>
191   </context>
192   <context name="BLCorner">
193     <mousebind button="Left" action="Drag">
194       <action name="Resize"/>
195     </mousebind>
196     <mousebind button="Left" action="Press">
197       <action name="Focus"/>
198     </mousebind>
199   </context>
200   <context name="BRCorner">
201     <mousebind button="Left" action="Drag">
202       <action name="Resize"/>
203     </mousebind>
204     <mousebind button="Left" action="Press">
205       <action name="Focus"/>
206     </mousebind>
207   </context>
208   <context name="TLCorner">
209     <mousebind button="Left" action="Drag">
210       <action name="Resize"/>
211     </mousebind>
212     <mousebind button="Left" action="Press">
213       <action name="Focus"/>
214     </mousebind>
215   </context>
216   <context name="TRCorner">
217     <mousebind button="Left" action="Drag">
218       <action name="Resize"/>
219     </mousebind>
220     <mousebind button="Left" action="Press">
221       <action name="Focus"/>
222     </mousebind>
223   </context>
224   <context name="Client">
225     <mousebind button="Left" action="Press">
226       <action name="Focus"/>
227       <action name="Raise"/>
228     </mousebind>
229     <mousebind button="Middle" action="Press">
230       <action name="Focus"/>
231     </mousebind>
232     <mousebind button="Right" action="Press">
233       <action name="Focus"/>
234     </mousebind>
235   </context>
236   <context name="Icon">
237     <mousebind button="Left" action="Press">
238       <action name="Focus"/>
239     </mousebind>
240     <mousebind button="Right" action="Press">
241       <action name="ShowMenu"><menu>client-menu</menu></action>
242     </mousebind>
243     <mousebind button="Left" action="Click">
244       <action name="ShowMenu"><menu>client-menu</menu></action>
245     </mousebind>
246     <mousebind button="Left" action="DoubleClick">
247       <action name="Close"/>
248     </mousebind>
249   </context>
250   <context name="AllDesktops">
251     <mousebind button="Left" action="Press">
252       <action name="Focus"/>
253     </mousebind>
254     <mousebind button="Left" action="Click">
255       <action name="ToggleOmnipresent"/>
256     </mousebind>
257   </context>
258   <context name="Shade">
259     <mousebind button="Left" action="Press">
260       <action name="Focus"/>
261     </mousebind>
262     <mousebind button="Left" action="Click">
263       <action name="ToggleShade"/>
264     </mousebind>
265   </context>
266   <context name="Iconify">
267     <mousebind button="Left" action="Press">
268       <action name="Focus"/>
269     </mousebind>
270     <mousebind button="Left" action="Click">
271       <action name="Iconify"/>
272     </mousebind>
273   </context>
274   <context name="Maximize">
275     <mousebind button="Left" action="Press">
276       <action name="Focus"/>
277     </mousebind>
278     <mousebind button="Middle" action="Press">
279       <action name="Focus"/>
280     </mousebind>
281     <mousebind button="Right" action="Press">
282       <action name="Focus"/>
283     </mousebind>
284     <mousebind button="Left" action="Click">
285       <action name="ToggleMaximizeFull"/>
286     </mousebind>
287     <mousebind button="Middle" action="Click">
288       <action name="ToggleMaximizeVert"/>
289     </mousebind>
290     <mousebind button="Right" action="Click">
291       <action name="ToggleMaximizeHorz"/>
292     </mousebind>
293   </context>
294   <context name="Close">
295     <mousebind button="Left" action="Press">
296       <action name="Focus"/>
297     </mousebind>
298     <mousebind button="Left" action="Click">
299       <action name="Close"/>
300     </mousebind>
301   </context>
302   <context name="Desktop">
303     <mousebind button="Up" action="Press">
304       <action name="DesktopNext"/>
305     </mousebind>
306     <mousebind button="Down" action="Press">
307       <action name="DesktopPrevious"/>
308     </mousebind>
309     <mousebind button="A-Up" action="Press">
310       <action name="DesktopNext"/>
311     </mousebind>
312     <mousebind button="A-Down" action="Press">
313       <action name="DesktopPrevious"/>
314     </mousebind>
315     <mousebind button="Left" action="Press">
316       <action name="Focus"/>
317     </mousebind> 
318     <mousebind button="Middle" action="Press">
319       <action name="ShowMenu"><menu>client-list-menu</menu></action>
320     </mousebind> 
321     <mousebind button="Right" action="Press">
322       <action name="ShowMenu"><menu>root-menu</menu></action>
323     </mousebind>
324   </context>
325   <context name="MoveResize">
326     <mousebind button="Up" action="Press">
327       <action name="DesktopNext"/>
328     </mousebind>
329     <mousebind button="Down" action="Press">
330       <action name="DesktopPrevious"/>
331     </mousebind>
332     <mousebind button="A-Up" action="Press">
333       <action name="DesktopNext"/>
334     </mousebind>
335     <mousebind button="A-Down" action="Press">
336       <action name="DesktopPrevious"/>
337     </mousebind>
338   </context>
339 </mouse>
340
341 <menu>
342   <!-- You can specify more than one menu file in here and they are all loaded,
343        just don't make menu ids clash or, well, it'll be kind of pointless -->
344
345   <!-- debian menu file -->
346   <file>/etc/X11/openbox/openbox-menu.xml</file>
347
348   <!-- default menu file (or custom one in $HOME/.openbox/) -->
349   <file>menu.xml</file>
350 </menu>
351
352 </openbox_config>