focus and raise when you click on the frame itself, i.e. the border to the sides...
[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   <popupShow>Nonpixel</popupShow>
86   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
87   <popupPosition>Center</popupPosition>
88   <!-- 'Center' or 'Top' -->
89 </resize>
90
91 <dock>
92   <position>TopLeft</position>
93   <!-- (Top|Bottom)(Left|Right|)|Left|Right|Floating -->
94   <floatingX>0</floatingX>
95   <floatingY>0</floatingY>
96   <noStrut>no</noStrut>
97   <stacking>Top</stacking>
98   <direction>Vertical</direction>
99   <!-- 'Vertical' or 'Horizontal' -->
100   <autoHide>no</autoHide>
101   <hideDelay>300</hideDelay>
102   <showDelay>300</showDelay>
103   <moveButton>Middle</moveButton>
104 </dock>
105
106 <keyboard>
107   <chainQuitKey>C-g</chainQuitKey>
108
109   <keybind key="A-F10">
110     <action name="MaximizeFull"/>
111   </keybind>
112   <keybind key="A-F5">
113     <action name="UnmaximizeFull"/>
114   </keybind>
115   <keybind key="A-F12">
116     <action name="ToggleShade"/>
117   </keybind>
118   <keybind key="C-A-Left">
119     <action name="DesktopLeft"><wrap>no</wrap></action>
120   </keybind>
121   <keybind key="C-A-Right">
122     <action name="DesktopRight"><wrap>no</wrap></action>
123   </keybind>
124   <keybind key="C-A-Up">
125     <action name="DesktopUp"><wrap>no</wrap></action>
126   </keybind>
127   <keybind key="C-A-Down">
128     <action name="DesktopDown"><wrap>no</wrap></action>
129   </keybind>
130   <keybind key="S-A-Left">
131     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
132   </keybind>
133   <keybind key="S-A-Right">
134     <action name="SendToDesktopRight"><wrap>no</wrap></action>
135   </keybind>
136   <keybind key="S-A-Up">
137     <action name="SendToDesktopUp"><wrap>no</wrap></action>
138   </keybind>
139   <keybind key="S-A-Down">
140     <action name="SendToDesktopDown"><wrap>no</wrap></action>
141   </keybind>
142   <keybind key="C-A-d">
143     <action name="ToggleShowDesktop"/>
144   </keybind>
145   <keybind key="A-F4">
146     <action name="Close"/>
147   </keybind>
148   <keybind key="A-Tab">
149     <action name="NextWindow"/>
150   </keybind>
151   <keybind key="A-S-Tab">
152     <action name="PreviousWindow"/>
153   </keybind>
154   <keybind key="C-A-Tab">
155     <action name="NextWindow"><panels>yes</panels></action>
156   </keybind>
157   <keybind key="C-A-S-Tab">
158     <action name="PreviousWindow"><panels>yes</panels></action>
159   </keybind>
160   <keybind key="A-F7">
161     <action name="Move"/>
162   </keybind>
163   <keybind key="A-F8">
164     <action name="Resize"/>
165   </keybind>
166   <keybind key="A-F9">
167     <action name="Iconify"/>
168   </keybind>
169   <keybind key="A-space">
170     <action name="ShowMenu"><menu>client-menu</menu></action>
171   </keybind>
172 </keyboard>
173
174 <mouse>
175   <dragThreshold>3</dragThreshold>
176   <doubleClickTime>200</doubleClickTime>
177
178   <context name="Frame">
179     <mousebind button="A-Left" action="Drag">
180       <action name="Move"/>
181     </mousebind>
182     <mousebind button="A-Left" action="Click">
183       <action name="Raise"/>
184     </mousebind>
185     <mousebind button="A-Left" action="Press">
186       <action name="Focus"/>
187     </mousebind>
188     <mousebind button="A-Middle" action="Drag">
189       <action name="Resize"/>
190     </mousebind> 
191     <mousebind button="A-Middle" action="Click">
192       <action name="Lower"/>
193     </mousebind>
194     <mousebind button="A-Right" action="Press">
195       <action name="ShowMenu"><menu>client-menu</menu></action>
196     </mousebind>
197     <mousebind button="A-Up" action="Click">
198       <action name="DesktopPrevious"/>
199     </mousebind>
200     <mousebind button="A-Down" action="Click">
201       <action name="DesktopNext"/>
202     </mousebind>
203     <mousebind button="C-A-Up" action="Click">
204       <action name="SendToDesktopPrevious"/>
205     </mousebind>
206     <mousebind button="C-A-Down" action="Click">
207       <action name="SendToDesktopNext"/>
208     </mousebind>
209     <mousebind button="Left" action="Click">
210       <action name="Raise"/>
211     </mousebind>
212     <mousebind button="Left" action="Press">
213       <action name="Focus"/>
214     </mousebind>
215   </context>
216   <context name="Titlebar">
217     <mousebind button="Left" action="Drag">
218       <action name="Move"/>
219     </mousebind>
220     <mousebind button="Left" action="Click">
221       <action name="Raise"/>
222     </mousebind>
223     <mousebind button="Left" action="Press">
224       <action name="Focus"/>
225     </mousebind>
226     <mousebind button="Left" action="DoubleClick">
227       <action name="ToggleShade"/>
228     </mousebind>
229     <mousebind button="Middle" action="Press">
230       <action name="Lower"/>
231     </mousebind>
232     <mousebind button="Up" action="Click">
233       <action name="Shade"/>
234     </mousebind>
235     <mousebind button="Down" action="Click">
236       <action name="Unshade"/>
237     </mousebind>
238     <mousebind button="Right" action="Press">
239       <action name="ShowMenu"><menu>client-menu</menu></action>
240     </mousebind>
241   </context>
242   <context name="Handle">
243     <mousebind button="Left" action="Drag">
244       <action name="Move"/>
245     </mousebind>
246     <mousebind button="Left" action="Click">
247       <action name="Raise"/>
248     </mousebind>
249     <mousebind button="Left" action="Press">
250       <action name="Focus"/>
251     </mousebind>
252     <mousebind button="Middle" action="Press">
253       <action name="Lower"/>
254     </mousebind>
255   </context>
256   <context name="BLCorner">
257     <mousebind button="Left" action="Drag">
258       <action name="Resize"/>
259     </mousebind>
260     <mousebind button="Left" action="Press">
261       <action name="Focus"/>
262     </mousebind>
263   </context>
264   <context name="BRCorner">
265     <mousebind button="Left" action="Drag">
266       <action name="Resize"/>
267     </mousebind>
268     <mousebind button="Left" action="Press">
269       <action name="Focus"/>
270     </mousebind>
271   </context>
272   <context name="TLCorner">
273     <mousebind button="Left" action="Drag">
274       <action name="Resize"/>
275     </mousebind>
276     <mousebind button="Left" action="Press">
277       <action name="Focus"/>
278     </mousebind>
279   </context>
280   <context name="TRCorner">
281     <mousebind button="Left" action="Drag">
282       <action name="Resize"/>
283     </mousebind>
284     <mousebind button="Left" action="Press">
285       <action name="Focus"/>
286     </mousebind>
287   </context>
288   <context name="Client">
289     <mousebind button="Left" action="Press">
290       <action name="Focus"/>
291       <action name="Raise"/>
292     </mousebind>
293     <mousebind button="Middle" action="Press">
294       <action name="Focus"/>
295     </mousebind>
296     <mousebind button="Right" action="Press">
297       <action name="Focus"/>
298     </mousebind>
299   </context>
300   <context name="Icon">
301     <mousebind button="Left" action="Press">
302       <action name="Focus"/>
303     </mousebind>
304     <mousebind button="Right" action="Press">
305       <action name="ShowMenu"><menu>client-menu</menu></action>
306     </mousebind>
307     <mousebind button="Left" action="Press">
308       <action name="ShowMenu"><menu>client-menu</menu></action>
309     </mousebind>
310   </context>
311   <context name="AllDesktops">
312     <mousebind button="Left" action="Press">
313       <action name="Focus"/>
314     </mousebind>
315     <mousebind button="Left" action="Click">
316       <action name="ToggleOmnipresent"/>
317     </mousebind>
318   </context>
319   <context name="Shade">
320     <mousebind button="Left" action="Press">
321       <action name="Focus"/>
322     </mousebind>
323     <mousebind button="Left" action="Click">
324       <action name="ToggleShade"/>
325     </mousebind>
326   </context>
327   <context name="Iconify">
328     <mousebind button="Left" action="Press">
329       <action name="Focus"/>
330     </mousebind>
331     <mousebind button="Left" action="Click">
332       <action name="Iconify"/>
333     </mousebind>
334   </context>
335   <context name="Maximize">
336     <mousebind button="Left" action="Press">
337       <action name="Focus"/>
338     </mousebind>
339     <mousebind button="Middle" action="Press">
340       <action name="Focus"/>
341     </mousebind>
342     <mousebind button="Right" action="Press">
343       <action name="Focus"/>
344     </mousebind>
345     <mousebind button="Left" action="Click">
346       <action name="ToggleMaximizeFull"/>
347     </mousebind>
348     <mousebind button="Middle" action="Click">
349       <action name="ToggleMaximizeVert"/>
350     </mousebind>
351     <mousebind button="Right" action="Click">
352       <action name="ToggleMaximizeHorz"/>
353     </mousebind>
354   </context>
355   <context name="Close">
356     <mousebind button="Left" action="Press">
357       <action name="Focus"/>
358     </mousebind>
359     <mousebind button="Left" action="Click">
360       <action name="Close"/>
361     </mousebind>
362   </context>
363   <context name="Desktop">
364     <mousebind button="Up" action="Press">
365       <action name="DesktopPrevious"/>
366     </mousebind>
367     <mousebind button="Down" action="Press">
368       <action name="DesktopNext"/>
369     </mousebind>
370     <mousebind button="A-Up" action="Press">
371       <action name="DesktopPrevious"/>
372     </mousebind>
373     <mousebind button="A-Down" action="Press">
374       <action name="DesktopNext"/>
375     </mousebind>
376     <mousebind button="Left" action="Press">
377       <action name="Focus"/>
378       <action name="Raise"/>
379     </mousebind> 
380     <mousebind button="Middle" action="Press">
381       <action name="ShowMenu"><menu>client-list-menu</menu></action>
382     </mousebind> 
383     <mousebind button="Right" action="Press">
384       <action name="ShowMenu"><menu>root-menu</menu></action>
385     </mousebind>
386   </context>
387   <context name="MoveResize">
388     <mousebind button="Up" action="Press">
389       <action name="DesktopPrevious"/>
390     </mousebind>
391     <mousebind button="Down" action="Press">
392       <action name="DesktopNext"/>
393     </mousebind>
394     <mousebind button="A-Up" action="Press">
395       <action name="DesktopPrevious"/>
396     </mousebind>
397     <mousebind button="A-Down" action="Press">
398       <action name="DesktopNext"/>
399     </mousebind>
400   </context>
401 </mouse>
402
403 <menu>
404   <!-- You can specify more than one menu file in here and they are all loaded,
405        just don't make menu ids clash or, well, it'll be kind of pointless -->
406
407   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
408   <file>menu.xml</file>
409   <warpPointer>yes</warpPointer>
410   <xorStyle>yes</xorStyle>
411   <hideDelay>250</hideDelay>
412   <middle>no</middle>
413   <submenuShowDelay>0</submenuShowDelay>
414   <desktopMenuIcons>yes</desktopMenuIcons>
415   <!-- -->
416 </menu>
417
418 <applications>
419 <!--
420   <application name="this application does not exist">
421     <decor>yes</decor>
422     <shade>no</shade>
423     <position>
424       <x>center</x>
425       <y>200</y>
426     </position>
427     <focus>yes</focus>
428     <desktop>1</desktop>
429     <head>0</head>
430     # specifies xinerama head
431     <layer>normal</layer>
432     # 'above', 'normal', or 'below'
433     <iconic>no</iconic>
434     <skip_pager>no</skip_pager>
435     <skip_taskbar>no</skip_taskbar>
436     <fullscreen>yes</fullscreen>
437     <maximized>true</maximized>
438     # 'Horizontal', 'Vertical' or boolean (yes/no/on/off/true/false)
439   </application>
440  -->
441 </applications>
442
443 </openbox_config>