new method for loading menu files etc
[mikachu/openbox.git] / data / rc3
1 <?xml version="1.0"?>
2
3 <!-- Do not edit this file, it will be overwritten on install. Copy the file
4      to $HOME/.openbox/ instead. -->
5
6 <openbox_config>
7
8 <resistance>
9   <strength>10</strength>
10   <screen_edge_strength>10</screen_edge_strength>
11 </resistance>
12
13 <placement>
14   <remember>yes</remember>
15 </placement>
16
17 <focus>
18   <focusNew>yes</focusNew>
19   <followMouse>no</followMouse>
20   <focusLast>yes</focusLast>
21   <focusLastOnDesktop>yes</focusLastOnDesktop>
22   <cyclingDialog>yes</cyclingDialog>
23 </focus>
24
25 <theme>
26   <theme>operation</theme>
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   <cyclingDialog>yes</cyclingDialog>
39 </desktops>
40
41 <resize>
42   <drawContents>yes</drawContents>
43 </resize>
44
45 <dock>
46   <position>topleft</position>
47   <stacking>top</stacking>
48   <direction>vertical</direction>
49   <floatingX>0</floatingX>
50   <floatingY>0</floatingY>
51   <autoHide>no</autoHide>
52   <hideTimeout>300</hideTimeout>
53 </dock>
54
55 <keyboard>
56   <chainQuitKey>C-g</chainQuitKey>
57
58   <keybind key="A-F10">
59     <action name="MaximizeFull"></action>
60   </keybind>
61   <keybind key="A-F5">
62     <action name="UnmaximizeFull"></action>
63   </keybind>
64   <keybind key="A-F12">
65     <action name="ToggleShade"></action>
66   </keybind>
67   <keybind key="C-A-Left">
68     <action name="DesktopLeft"></action>
69   </keybind>
70   <keybind key="C-A-Right">
71     <action name="DesktopRight"></action>
72   </keybind>
73   <keybind key="C-A-Up">
74     <action name="DesktopUp"></action>
75   </keybind>
76   <keybind key="C-A-Down">
77     <action name="DesktopDown"></action>
78   </keybind>
79   <keybind key="S-A-Left">
80     <action name="SendToDesktopLeft"></action>
81   </keybind>
82   <keybind key="S-A-Right">
83     <action name="SendToDesktopRight"></action>
84   </keybind>
85   <keybind key="S-A-Up">
86     <action name="SendToDesktopUp"></action>
87   </keybind>
88   <keybind key="S-A-Down">
89     <action name="SendToDesktopDown"></action>
90   </keybind>
91   <keybind key="C-A-d">
92     <action name="ToggleShowDesktop"></action>
93   </keybind>
94   <keybind key="A-F4">
95     <action name="Close"></action>
96   </keybind>
97   <keybind key="A-Tab">
98     <action name="NextWindow"></action>
99   </keybind>
100   <keybind key="A-S-Tab">
101     <action name="PreviousWindow"></action>
102   </keybind>
103   <keybind key="A-F7">
104     <action name="KeyboardMove"></action>
105   </keybind>
106   <keybind key="A-F8">
107     <action name="KeyboardResize"></action>
108   </keybind>
109   <keybind key="A-F9">
110     <action name="Iconify"></action>
111   </keybind>
112 </keyboard>
113
114 <mouse>
115   <dragThreshold>3</dragThreshold>
116   <doubleClickTime>200</doubleClickTime>
117
118   <context name="frame">
119     <mousebind button="A-Left" action="drag">
120       <action name="move"/>
121     </mousebind>
122     <mousebind button="A-Left" action="click">
123       <action name="raise"/>
124     </mousebind>
125     <mousebind button="A-Left" action="press">
126       <action name="focus"/>
127     </mousebind>
128     <mousebind button="A-Middle" action="drag">
129       <action name="resize"/>
130     </mousebind> 
131     <mousebind button="A-Middle" action="click">
132       <action name="lower"/>
133     </mousebind>
134     <mousebind button="A-Right" action="press">
135       <action name="showmenu">
136         <menu plugin="client_menu">client-menu</menu>
137       </action>
138     </mousebind>
139     <mousebind button="A-Up" action="click">
140       <action name="desktopright"/>
141     </mousebind>
142     <mousebind button="A-Down" action="click">
143       <action name="desktopleft"/>
144     </mousebind>
145     <mousebind button="C-A-Up" action="click">
146       <action name="sendtodesktopright"/>
147     </mousebind>
148     <mousebind button="C-A-Down" action="click">
149       <action name="sendtodesktopleft"/>
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">
176         <menu plugin="client_menu">client-menu</menu>
177       </action>
178     </mousebind>
179   </context>
180   <context name="handle">
181     <mousebind button="Left" action="drag">
182       <action name="move"/>
183     </mousebind>
184     <mousebind button="Left" action="click">
185       <action name="raise"/>
186     </mousebind>
187     <mousebind button="Left" action="press">
188       <action name="focus"/>
189     </mousebind>
190     <mousebind button="Middle" action="press">
191       <action name="lower"/>
192     </mousebind>
193   </context>
194   <context name="blcorner">
195     <mousebind button="Left" action="drag">
196       <action name="resize"/>
197     </mousebind>
198     <mousebind button="Left" action="press">
199       <action name="focus"/>
200     </mousebind>
201   </context>
202   <context name="brcorner">
203     <mousebind button="Left" action="drag">
204       <action name="resize"/>
205     </mousebind>
206     <mousebind button="Left" action="press">
207       <action name="focus"/>
208     </mousebind>
209   </context>
210   <context name="tlcorner">
211     <mousebind button="Left" action="drag">
212       <action name="resize"/>
213     </mousebind>
214     <mousebind button="Left" action="press">
215       <action name="focus"/>
216     </mousebind>
217   </context>
218   <context name="trcorner">
219     <mousebind button="Left" action="drag">
220       <action name="resize"/>
221     </mousebind>
222     <mousebind button="Left" action="press">
223       <action name="focus"/>
224     </mousebind>
225   </context>
226   <context name="client">
227     <mousebind button="Left" action="press">
228       <action name="focus"/>
229       <action name="raise"/>
230     </mousebind>
231     <mousebind button="Middle" action="press">
232       <action name="focus"/>
233     </mousebind>
234     <mousebind button="Right" action="press">
235       <action name="focus"/>
236     </mousebind>
237   </context>
238   <context name="icon">
239     <mousebind button="Left" action="press">
240       <action name="focus"/>
241     </mousebind>
242     <mousebind button="Right" action="press">
243       <action name="showmenu">
244         <menu plugin="client_menu">client-menu</menu>
245       </action>
246     </mousebind>
247     <mousebind button="Left" action="click">
248       <action name="showmenu">
249         <menu plugin="client_menu">client-menu</menu>
250       </action>
251     </mousebind>
252     <mousebind button="Left" action="doubleclick">
253       <action name="close"/>
254     </mousebind>
255   </context>
256   <context name="alldesktops">
257     <mousebind button="Left" action="press">
258       <action name="focus"/>
259     </mousebind>
260     <mousebind button="Left" action="click">
261       <action name="toggleomnipresent"/>
262     </mousebind>
263   </context>
264   <context name="shade">
265     <mousebind button="Left" action="press">
266       <action name="focus"/>
267     </mousebind>
268     <mousebind button="Left" action="click">
269       <action name="toggleshade"/>
270     </mousebind>
271   </context>
272   <context name="iconify">
273     <mousebind button="Left" action="press">
274       <action name="focus"/>
275     </mousebind>
276     <mousebind button="Left" action="click">
277       <action name="iconify"/>
278     </mousebind>
279   </context>
280   <context name="maximize">
281     <mousebind button="Left" action="press">
282       <action name="focus"/>
283     </mousebind>
284     <mousebind button="Middle" action="press">
285       <action name="focus"/>
286     </mousebind>
287     <mousebind button="Right" action="press">
288       <action name="focus"/>
289     </mousebind>
290     <mousebind button="Left" action="click">
291       <action name="togglemaximizefull"/>
292     </mousebind>
293     <mousebind button="Middle" action="click">
294       <action name="togglemaximizevert"/>
295     </mousebind>
296     <mousebind button="Right" action="click">
297       <action name="togglemaximizehorz"/>
298     </mousebind>
299   </context>
300   <context name="close">
301     <mousebind button="Left" action="press">
302       <action name="focus"/>
303     </mousebind>
304     <mousebind button="Left" action="click">
305       <action name="close"/>
306     </mousebind>
307   </context>
308   <context name="desktop">
309     <mousebind button="A-Up" action="click">
310       <action name="desktopright"/>
311     </mousebind>
312     <mousebind button="A-Down" action="click">
313       <action name="desktopleft"/>
314     </mousebind>
315     <mousebind button="Middle" action="press">
316       <action name="showmenu">
317         <menu plugin="client_list_menu">client-list-menu</menu>
318       </action>
319     </mousebind> 
320     <mousebind button="Right" action="press">
321       <action name="showmenu">
322         <menu>root-menu</menu>
323       </action>
324     </mousebind>
325   </context>
326 </mouse>
327
328 <menu>
329   <!-- You can specify more than one menu file in here and they are all loaded,
330        just don't make menu ids clash or, well, it'll be kind of pointless -->
331
332   <!-- default menu file (or custom one in $HOME/.openbox/) -->
333   <file>menu</file>
334
335   <!-- debian menu file -->
336   <file>/etc/X11/openbox/openbox-menu</file>
337 </menu>
338
339 </openbox_config>