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