add a default action for cycling panels
[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   <focusLast>no</focusLast>
20   <followMouse>no</followMouse>
21   <focusDelay>0</focusDelay>
22   <raiseOnFocus>no</raiseOnFocus>
23 </focus>
24
25 <placement>
26   <policy>Smart</policy>
27   <!-- 'Smart' or 'UnderMouse' -->
28 </placement>
29
30 <theme>
31   <name>bear2</name>
32   <titleLayout>NLIMC</titleLayout>
33   <titleNumber>yes</titleNumber>
34   <!--
35       avaible characters are NDSLIMC, each can occur at most once.
36       N: client menu
37       L: window label (AKA title).
38       I: iconify
39       M: maximize
40       C: close
41       S: shade
42       D: omnipresent (on all desktops).
43   -->
44   <keepBorder>yes</keepBorder>
45   <hideDisabled>no</hideDisabled>
46   <font place="ActiveWindow">
47     <name>arial,sans</name>
48     <size>7</size>
49     <weight>bold</weight>
50     <slant>normal</slant>
51   </font>
52   <font place="InactiveWindow">
53     <name>arial,sans</name>
54     <size>7</size>
55     <weight>bold</weight>
56     <slant>normal</slant>
57   </font>
58   <font place="MenuTitle">
59     <name>arial,sans</name>
60     <size>8</size>
61     <weight>bold</weight>
62     <slant>normal</slant>
63   </font>
64   <font place="MenuItem">
65     <name>arial,sans</name>
66     <size>8</size>
67     <weight>bold</weight>
68     <slant>normal</slant>
69   </font>
70 </theme>
71
72 <desktops>
73   <number>4</number>
74   <firstdesk>1</firstdesk>
75   <names>
76     <name>one</name>
77     <name>two</name>
78     <name>three</name>
79     <name>four</name>
80   </names>
81 </desktops>
82
83 <resize>
84   <drawContents>yes</drawContents>
85   <fourCorners>no</fourCorners>
86   <popupShow>Nonpixel</popupShow>
87   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
88   <popupPosition>Center</popupPosition>
89   <!-- 'Center' or 'Top' -->
90 </resize>
91
92 <dock>
93   <position>TopLeft</position>
94   <!-- (Top|Bottom)(Left|Right|)|Left|Right|Floating -->
95   <floatingX>0</floatingX>
96   <floatingY>0</floatingY>
97   <noStrut>no</noStrut>
98   <stacking>Top</stacking>
99   <direction>Vertical</direction>
100   <!-- 'Vertical' or 'Horizontal' -->
101   <autoHide>no</autoHide>
102   <hideDelay>300</hideDelay>
103   <showDelay>300</showDelay>
104   <moveButton>Middle</moveButton>
105 </dock>
106
107 <keyboard>
108   <chainQuitKey>C-g</chainQuitKey>
109
110   <keybind key="A-F10">
111     <action name="MaximizeFull"/>
112   </keybind>
113   <keybind key="A-F5">
114     <action name="UnmaximizeFull"/>
115   </keybind>
116   <keybind key="A-F12">
117     <action name="ToggleShade"/>
118   </keybind>
119   <keybind key="C-A-Left">
120     <action name="DesktopLeft"><wrap>no</wrap></action>
121   </keybind>
122   <keybind key="C-A-Right">
123     <action name="DesktopRight"><wrap>no</wrap></action>
124   </keybind>
125   <keybind key="C-A-Up">
126     <action name="DesktopUp"><wrap>no</wrap></action>
127   </keybind>
128   <keybind key="C-A-Down">
129     <action name="DesktopDown"><wrap>no</wrap></action>
130   </keybind>
131   <keybind key="S-A-Left">
132     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
133   </keybind>
134   <keybind key="S-A-Right">
135     <action name="SendToDesktopRight"><wrap>no</wrap></action>
136   </keybind>
137   <keybind key="S-A-Up">
138     <action name="SendToDesktopUp"><wrap>no</wrap></action>
139   </keybind>
140   <keybind key="S-A-Down">
141     <action name="SendToDesktopDown"><wrap>no</wrap></action>
142   </keybind>
143   <keybind key="C-A-d">
144     <action name="ToggleShowDesktop"/>
145   </keybind>
146   <keybind key="A-F4">
147     <action name="Close"/>
148   </keybind>
149   <keybind key="A-Tab">
150     <action name="NextWindow"/>
151   </keybind>
152   <keybind key="A-S-Tab">
153     <action name="PreviousWindow"/>
154   </keybind>
155   <keybind key="C-A-Tab">
156     <action name="NextWindow"><panels>yes</panels></action>
157   </keybind>
158   <keybind key="C-A-S-Tab">
159     <action name="PreviousWindow"><panels>yes</panels></action>
160   </keybind>
161   <keybind key="A-F7">
162     <action name="Move"/>
163   </keybind>
164   <keybind key="A-F8">
165     <action name="Resize"/>
166   </keybind>
167   <keybind key="A-F9">
168     <action name="Iconify"/>
169   </keybind>
170   <keybind key="A-space">
171     <action name="ShowMenu"><menu>client-menu</menu></action>
172   </keybind>
173 </keyboard>
174
175 <mouse>
176   <dragThreshold>3</dragThreshold>
177   <doubleClickTime>200</doubleClickTime>
178
179   <context name="Frame">
180     <mousebind button="A-Left" action="Drag">
181       <action name="Move"/>
182     </mousebind>
183     <mousebind button="A-Left" action="Click">
184       <action name="Raise"/>
185     </mousebind>
186     <mousebind button="A-Left" action="Press">
187       <action name="Focus"/>
188     </mousebind>
189     <mousebind button="A-Middle" action="Drag">
190       <action name="Resize"/>
191     </mousebind> 
192     <mousebind button="A-Middle" action="Click">
193       <action name="Lower"/>
194     </mousebind>
195     <mousebind button="A-Right" action="Press">
196       <action name="ShowMenu"><menu>client-menu</menu></action>
197     </mousebind>
198     <mousebind button="A-Up" action="Click">
199       <action name="DesktopPrevious"/>
200     </mousebind>
201     <mousebind button="A-Down" action="Click">
202       <action name="DesktopNext"/>
203     </mousebind>
204     <mousebind button="C-A-Up" action="Click">
205       <action name="SendToDesktopPrevious"/>
206     </mousebind>
207     <mousebind button="C-A-Down" action="Click">
208       <action name="SendToDesktopNext"/>
209     </mousebind>
210   </context>
211   <context name="Titlebar">
212     <mousebind button="Left" action="Drag">
213       <action name="Move"/>
214     </mousebind>
215     <mousebind button="Left" action="Click">
216       <action name="Raise"/>
217     </mousebind>
218     <mousebind button="Left" action="Press">
219       <action name="Focus"/>
220     </mousebind>
221     <mousebind button="Left" action="DoubleClick">
222       <action name="ToggleShade"/>
223     </mousebind>
224     <mousebind button="Middle" action="Press">
225       <action name="Lower"/>
226     </mousebind>
227     <mousebind button="Up" action="Click">
228       <action name="Shade"/>
229     </mousebind>
230     <mousebind button="Down" action="Click">
231       <action name="Unshade"/>
232     </mousebind>
233     <mousebind button="Right" action="Press">
234       <action name="ShowMenu"><menu>client-menu</menu></action>
235     </mousebind>
236   </context>
237   <context name="Handle">
238     <mousebind button="Left" action="Drag">
239       <action name="Move"/>
240     </mousebind>
241     <mousebind button="Left" action="Click">
242       <action name="Raise"/>
243     </mousebind>
244     <mousebind button="Left" action="Press">
245       <action name="Focus"/>
246     </mousebind>
247     <mousebind button="Middle" action="Press">
248       <action name="Lower"/>
249     </mousebind>
250   </context>
251   <context name="BLCorner">
252     <mousebind button="Left" action="Drag">
253       <action name="Resize"/>
254     </mousebind>
255     <mousebind button="Left" action="Press">
256       <action name="Focus"/>
257     </mousebind>
258   </context>
259   <context name="BRCorner">
260     <mousebind button="Left" action="Drag">
261       <action name="Resize"/>
262     </mousebind>
263     <mousebind button="Left" action="Press">
264       <action name="Focus"/>
265     </mousebind>
266   </context>
267   <context name="TLCorner">
268     <mousebind button="Left" action="Drag">
269       <action name="Resize"/>
270     </mousebind>
271     <mousebind button="Left" action="Press">
272       <action name="Focus"/>
273     </mousebind>
274   </context>
275   <context name="TRCorner">
276     <mousebind button="Left" action="Drag">
277       <action name="Resize"/>
278     </mousebind>
279     <mousebind button="Left" action="Press">
280       <action name="Focus"/>
281     </mousebind>
282   </context>
283   <context name="Client">
284     <mousebind button="Left" action="Press">
285       <action name="Focus"/>
286       <action name="Raise"/>
287     </mousebind>
288     <mousebind button="Middle" action="Press">
289       <action name="Focus"/>
290     </mousebind>
291     <mousebind button="Right" action="Press">
292       <action name="Focus"/>
293     </mousebind>
294   </context>
295   <context name="Icon">
296     <mousebind button="Left" action="Press">
297       <action name="Focus"/>
298     </mousebind>
299     <mousebind button="Right" action="Press">
300       <action name="ShowMenu"><menu>client-menu</menu></action>
301     </mousebind>
302     <mousebind button="Left" action="Press">
303       <action name="ShowMenu"><menu>client-menu</menu></action>
304     </mousebind>
305   </context>
306   <context name="AllDesktops">
307     <mousebind button="Left" action="Press">
308       <action name="Focus"/>
309     </mousebind>
310     <mousebind button="Left" action="Click">
311       <action name="ToggleOmnipresent"/>
312     </mousebind>
313   </context>
314   <context name="Shade">
315     <mousebind button="Left" action="Press">
316       <action name="Focus"/>
317     </mousebind>
318     <mousebind button="Left" action="Click">
319       <action name="ToggleShade"/>
320     </mousebind>
321   </context>
322   <context name="Iconify">
323     <mousebind button="Left" action="Press">
324       <action name="Focus"/>
325     </mousebind>
326     <mousebind button="Left" action="Click">
327       <action name="Iconify"/>
328     </mousebind>
329   </context>
330   <context name="Maximize">
331     <mousebind button="Left" action="Press">
332       <action name="Focus"/>
333     </mousebind>
334     <mousebind button="Middle" action="Press">
335       <action name="Focus"/>
336     </mousebind>
337     <mousebind button="Right" action="Press">
338       <action name="Focus"/>
339     </mousebind>
340     <mousebind button="Left" action="Click">
341       <action name="ToggleMaximizeFull"/>
342     </mousebind>
343     <mousebind button="Middle" action="Click">
344       <action name="ToggleMaximizeVert"/>
345     </mousebind>
346     <mousebind button="Right" action="Click">
347       <action name="ToggleMaximizeHorz"/>
348     </mousebind>
349   </context>
350   <context name="Close">
351     <mousebind button="Left" action="Press">
352       <action name="Focus"/>
353     </mousebind>
354     <mousebind button="Left" action="Click">
355       <action name="Close"/>
356     </mousebind>
357   </context>
358   <context name="Desktop">
359     <mousebind button="Up" action="Press">
360       <action name="DesktopPrevious"/>
361     </mousebind>
362     <mousebind button="Down" action="Press">
363       <action name="DesktopNext"/>
364     </mousebind>
365     <mousebind button="A-Up" action="Press">
366       <action name="DesktopPrevious"/>
367     </mousebind>
368     <mousebind button="A-Down" action="Press">
369       <action name="DesktopNext"/>
370     </mousebind>
371     <mousebind button="Left" action="Press">
372       <action name="Focus"/>
373       <action name="Raise"/>
374     </mousebind> 
375     <mousebind button="Middle" action="Press">
376       <action name="ShowMenu"><menu>client-list-menu</menu></action>
377     </mousebind> 
378     <mousebind button="Right" action="Press">
379       <action name="ShowMenu"><menu>root-menu</menu></action>
380     </mousebind>
381   </context>
382   <context name="MoveResize">
383     <mousebind button="Up" action="Press">
384       <action name="DesktopPrevious"/>
385     </mousebind>
386     <mousebind button="Down" action="Press">
387       <action name="DesktopNext"/>
388     </mousebind>
389     <mousebind button="A-Up" action="Press">
390       <action name="DesktopPrevious"/>
391     </mousebind>
392     <mousebind button="A-Down" action="Press">
393       <action name="DesktopNext"/>
394     </mousebind>
395   </context>
396 </mouse>
397
398 <menu>
399   <!-- You can specify more than one menu file in here and they are all loaded,
400        just don't make menu ids clash or, well, it'll be kind of pointless -->
401
402   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
403   <file>menu.xml</file>
404   <warpPointer>yes</warpPointer>
405   <xorStyle>yes</xorStyle>
406   <hideDelay>250</hideDelay>
407   <middle>no</middle>
408   <submenuShowDelay>0</submenuShowDelay>
409   <desktopMenuIcons>yes</desktopMenuIcons>
410   <!-- -->
411 </menu>
412
413 <applications>
414 <!--
415   <application name="this application does not exist">
416     <decor>yes</decor>
417     <shade>no</shade>
418     <position>
419       <x>center</x>
420       <y>200</y>
421     </position>
422     <focus>yes</focus>
423     <desktop>1</desktop>
424     <head>0</head>
425     # specifies xinerama head
426     <layer>normal</layer>
427     # 'above', 'normal', or 'below'
428     <iconic>no</iconic>
429     <skip_pager>no</skip_pager>
430     <skip_taskbar>no</skip_taskbar>
431     <fullscreen>yes</fullscreen>
432     <maximized>true</maximized>
433     # 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false)
434   </application>
435  -->
436 </applications>
437
438 </openbox_config>