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