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