]> icculus.org git repositories - dana/openbox.git/blob - data/rc.xml
let you unfocus/lower stuff in press actions. it'll be okay
[dana/openbox.git] / data / rc.xml
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/4.0/rc">
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   <focusLast>yes</focusLast>
16   <followMouse>no</followMouse>
17   <focusDelay>200</focusDelay>
18   <raiseOnFocus>no</raiseOnFocus>
19 </focus>
20
21 <placement>
22   <policy>Smart</policy>
23   <!-- 'Smart' or 'UnderMouse' -->
24 </placement>
25
26 <theme>
27   <name>Clearlooks</name>
28   <titleLayout>NLIMC</titleLayout>
29   <!--
30       avaible characters are NDSLIMC, each can occur at most once.
31       N: window icon
32       L: window label (AKA title).
33       I: iconify
34       M: maximize
35       C: close
36       S: shade (roll up/down)
37       D: omnipresent (on all desktops).
38   -->
39   <keepBorder>yes</keepBorder>
40   <animateIconify>yes</animateIconify>
41   <font place="ActiveWindow">
42     <name>sans</name>
43     <size>8</size>
44     <!-- font size in points -->
45     <weight>bold</weight>
46     <!-- 'bold' or 'normal' -->
47     <slant>normal</slant>
48     <!-- 'italic' or 'normal' -->
49   </font>
50   <font place="InactiveWindow">
51     <name>sans</name>
52     <size>8</size>
53     <!-- font size in points -->
54     <weight>bold</weight>
55     <!-- 'bold' or 'normal' -->
56     <slant>normal</slant>
57     <!-- 'italic' or 'normal' -->
58   </font>
59   <font place="MenuHeader">
60     <name>sans</name>
61     <size>9</size>
62     <!-- font size in points -->
63     <weight>normal</weight>
64     <!-- 'bold' or 'normal' -->
65     <slant>normal</slant>
66     <!-- 'italic' or 'normal' -->
67   </font>
68   <font place="MenuItem">
69     <name>sans</name>
70     <size>9</size>
71     <!-- font size in points -->
72     <weight>normal</weight>
73     <!-- 'bold' or 'normal' -->
74     <slant>normal</slant>
75     <!-- 'italic' or 'normal' -->
76   </font>
77   <font place="OnScreenDisplay">
78     <name>sans</name>
79     <size>9</size>
80     <!-- font size in points -->
81     <weight>bold</weight>
82     <!-- 'bold' or 'normal' -->
83     <slant>normal</slant>
84     <!-- 'italic' or 'normal' -->
85   </font>
86 </theme>
87
88 <desktops>
89   <!-- this stuff is only used at startup, pagers allow you to change them
90        during a session
91
92        these are default values to use when other ones are not already set
93        by other applications, or saved in your session
94
95        use obconf if you want to change these without having to log out
96        and back in -->
97   <number>4</number>
98   <firstdesk>1</firstdesk>
99   <names>
100     <!-- set names up here if you want to, like this:
101     <name>desktop 1</name>
102     <name>desktop 2</name>
103     -->
104   </names>
105 </desktops>
106
107 <resize>
108   <drawContents>yes</drawContents>
109   <popupShow>Nonpixel</popupShow>
110   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
111   <popupPosition>Center</popupPosition>
112   <!-- 'Center' or 'Top' -->
113 </resize>
114
115 <dock>
116   <position>TopLeft</position>
117   <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
118   <floatingX>0</floatingX>
119   <floatingY>0</floatingY>
120   <noStrut>no</noStrut>
121   <stacking>Above</stacking>
122   <!-- 'Above', 'Normal', or 'Below' -->
123   <direction>Vertical</direction>
124   <!-- 'Vertical' or 'Horizontal' -->
125   <autoHide>no</autoHide>
126   <hideDelay>300</hideDelay>
127   <!-- in milliseconds (1000 = 1 second) -->
128   <showDelay>300</showDelay>
129   <!-- in milliseconds (1000 = 1 second) -->
130   <moveButton>Middle</moveButton>
131   <!-- 'Left', 'Middle', 'Right' -->
132 </dock>
133
134 <keyboard>
135   <chainQuitKey>C-g</chainQuitKey>
136
137   <!-- Keybindings for desktop switching -->
138   <keybind key="C-A-Left">
139     <action name="DesktopLeft"><wrap>no</wrap></action>
140   </keybind>
141   <keybind key="C-A-Right">
142     <action name="DesktopRight"><wrap>no</wrap></action>
143   </keybind>
144   <keybind key="C-A-Up">
145     <action name="DesktopUp"><wrap>no</wrap></action>
146   </keybind>
147   <keybind key="C-A-Down">
148     <action name="DesktopDown"><wrap>no</wrap></action>
149   </keybind>
150   <keybind key="S-A-Left">
151     <action name="SendToDesktopLeft"><wrap>no</wrap></action>
152   </keybind>
153   <keybind key="S-A-Right">
154     <action name="SendToDesktopRight"><wrap>no</wrap></action>
155   </keybind>
156   <keybind key="S-A-Up">
157     <action name="SendToDesktopUp"><wrap>no</wrap></action>
158   </keybind>
159   <keybind key="S-A-Down">
160     <action name="SendToDesktopDown"><wrap>no</wrap></action>
161   </keybind>
162   <keybind key="W-F1">
163     <action name="Desktop"><desktop>1</desktop></action>
164   </keybind>
165   <keybind key="W-F2">
166     <action name="Desktop"><desktop>2</desktop></action>
167   </keybind>
168   <keybind key="W-F3">
169     <action name="Desktop"><desktop>3</desktop></action>
170   </keybind>
171   <keybind key="W-F4">
172     <action name="Desktop"><desktop>4</desktop></action>
173   </keybind>
174   <keybind key="W-d">
175     <action name="ToggleShowDesktop"/>
176   </keybind>
177
178   <!-- Keybindings for windows -->
179   <keybind key="A-F4">
180     <action name="Close"/>
181   </keybind>
182   <keybind key="A-Escape">
183     <action name="Lower"/>
184     <action name="FocusToBottom"/>
185     <action name="Unfocus"/>
186   </keybind>
187   <keybind key="A-space">
188     <action name="ShowMenu"><menu>client-menu</menu></action>
189   </keybind>
190
191   <!-- Keybindings for window switching -->
192   <keybind key="A-Tab">
193     <action name="NextWindow"/>
194   </keybind>
195   <keybind key="A-S-Tab">
196     <action name="PreviousWindow"/>
197   </keybind>
198   <keybind key="C-A-Tab">
199     <action name="NextWindow">
200       <panels>yes</panels><desktop>yes</desktop>
201     </action>
202   </keybind>
203
204   <!-- Keybindings for running applications -->
205   <keybind key="W-e">
206     <action name="Execute">
207       <startupnotify>
208         <enabled>true</enabled>
209         <name>Konqueror</name>
210       </startupnotify>
211       <execute>kfmclient openProfile filemanagement</execute>
212     </action>
213   </keybind>
214 </keyboard>
215
216 <mouse>
217   <dragThreshold>3</dragThreshold>
218   <!-- number of pixels the mouse must move before a drag begins -->
219   <doubleClickTime>200</doubleClickTime>
220   <!-- in milliseconds (1000 = 1 second) -->
221
222   <context name="Frame">
223     <mousebind button="A-Left" action="Press">
224       <action name="Focus"/>
225       <action name="Raise"/>
226     </mousebind>
227     <mousebind button="A-Left" action="Click">
228       <action name="Unshade"/>
229     </mousebind>
230     <mousebind button="A-Left" action="Drag">
231       <action name="Move"/>
232     </mousebind>
233
234     <mousebind button="A-Right" action="Press">
235       <action name="Focus"/>
236       <action name="Raise"/>
237       <action name="Unshade"/>
238     </mousebind>
239     <mousebind button="A-Right" action="Drag">
240       <action name="Resize"/>
241     </mousebind> 
242
243     <mousebind button="A-Middle" action="Press">
244       <action name="Lower"/>
245       <action name="FocusToBottom"/>
246       <action name="Unfocus"/>
247     </mousebind>
248
249     <mousebind button="A-Up" action="Click">
250       <action name="DesktopPrevious"/>
251     </mousebind>
252     <mousebind button="A-Down" action="Click">
253       <action name="DesktopNext"/>
254     </mousebind>
255     <mousebind button="C-A-Up" action="Click">
256       <action name="DesktopPrevious"/>
257     </mousebind>
258     <mousebind button="C-A-Down" action="Click">
259       <action name="DesktopNext"/>
260     </mousebind>
261     <mousebind button="A-S-Up" action="Click">
262       <action name="SendToDesktopPrevious"/>
263     </mousebind>
264     <mousebind button="A-S-Down" action="Click">
265       <action name="SendToDesktopNext"/>
266     </mousebind>
267   </context>
268
269   <context name="Titlebar">
270     <mousebind button="Left" action="Press">
271       <action name="Focus"/>
272       <action name="Raise"/>
273     </mousebind>
274     <mousebind button="Left" action="Click">
275       <action name="Unshade"/>
276     </mousebind>
277     <mousebind button="Left" action="Drag">
278       <action name="Move"/>
279     </mousebind>
280     <mousebind button="Left" action="DoubleClick">
281       <action name="ToggleMaximizeFull"/>
282     </mousebind>
283
284     <mousebind button="Middle" action="Press">
285       <action name="Lower"/>
286       <action name="FocusToBottom"/>
287       <action name="Unfocus"/>
288     </mousebind>
289
290     <mousebind button="Up" action="Click">
291       <action name="Shade"/>
292       <action name="FocusToBottom"/>
293       <action name="Unfocus"/>
294     </mousebind>
295     <mousebind button="Down" action="Click">
296       <action name="Unshade"/>
297     </mousebind>
298
299     <mousebind button="Right" action="Press">
300       <action name="Focus"/>
301       <action name="Raise"/>
302       <action name="ShowMenu"><menu>client-menu</menu></action>
303     </mousebind>
304   </context>
305
306   <context name="Top">
307     <mousebind button="Left" action="Press">
308       <action name="Focus"/>
309       <action name="Raise"/>
310       <action name="Unshade"/>
311     </mousebind>
312     <mousebind button="Left" action="Drag">
313       <action name="Resize"><edge>top</edge></action>
314     </mousebind>
315   </context>
316
317   <context name="Left">
318     <mousebind button="Left" action="Press">
319       <action name="Focus"/>
320       <action name="Raise"/>
321     </mousebind>
322     <mousebind button="Left" action="Drag">
323       <action name="Resize"><edge>left</edge></action>
324     </mousebind>
325   </context>
326
327   <context name="Right">
328     <mousebind button="Left" action="Press">
329       <action name="Focus"/>
330       <action name="Raise"/>
331     </mousebind>
332     <mousebind button="Left" action="Drag">
333       <action name="Resize"><edge>right</edge></action>
334     </mousebind>
335   </context>
336
337   <context name="Bottom">
338     <mousebind button="Left" action="Press">
339       <action name="Focus"/>
340       <action name="Raise"/>
341     </mousebind>
342     <mousebind button="Left" action="Drag">
343       <action name="Resize"><edge>bottom</edge></action>
344     </mousebind>
345
346     <mousebind button="Middle" action="Press">
347       <action name="Lower"/>
348       <action name="FocusToBottom"/>
349       <action name="Unfocus"/>
350     </mousebind>
351
352     <mousebind button="Right" action="Press">
353       <action name="Focus"/>
354       <action name="Raise"/>
355       <action name="ShowMenu"><menu>client-menu</menu></action>
356     </mousebind>
357   </context>
358
359   <context name="BLCorner">
360     <mousebind button="Left" action="Press">
361       <action name="Focus"/>
362       <action name="Raise"/>
363     </mousebind>
364     <mousebind button="Left" action="Drag">
365       <action name="Resize"/>
366     </mousebind>
367   </context>
368
369   <context name="BRCorner">
370     <mousebind button="Left" action="Press">
371       <action name="Focus"/>
372       <action name="Raise"/>
373     </mousebind>
374     <mousebind button="Left" action="Drag">
375       <action name="Resize"/>
376     </mousebind>
377   </context>
378
379   <context name="TLCorner">
380     <mousebind button="Left" action="Press">
381       <action name="Focus"/>
382       <action name="Raise"/>
383       <action name="Unshade"/>
384     </mousebind>
385     <mousebind button="Left" action="Drag">
386       <action name="Resize"/>
387     </mousebind>
388   </context>
389
390   <context name="TRCorner">
391     <mousebind button="Left" action="Press">
392       <action name="Focus"/>
393       <action name="Raise"/>
394       <action name="Unshade"/>
395     </mousebind>
396     <mousebind button="Left" action="Drag">
397       <action name="Resize"/>
398     </mousebind>
399   </context>
400
401   <context name="Client">
402     <mousebind button="Left" action="Press">
403       <action name="Focus"/>
404       <action name="Raise"/>
405     </mousebind>
406     <mousebind button="Middle" action="Press">
407       <action name="Focus"/>
408       <action name="Raise"/>
409     </mousebind>
410     <mousebind button="Right" action="Press">
411       <action name="Focus"/>
412       <action name="Raise"/>
413     </mousebind>
414   </context>
415
416   <context name="Icon">
417     <mousebind button="Left" action="Press">
418       <action name="Focus"/>
419       <action name="Raise"/>
420       <action name="Unshade"/>
421       <action name="ShowMenu"><menu>client-menu</menu></action>
422     </mousebind>
423     <mousebind button="Right" action="Press">
424       <action name="Focus"/>
425       <action name="Raise"/>
426       <action name="ShowMenu"><menu>client-menu</menu></action>
427     </mousebind>
428   </context>
429
430   <context name="AllDesktops">
431     <mousebind button="Left" action="Press">
432       <action name="Focus"/>
433       <action name="Raise"/>
434       <action name="Unshade"/>
435     </mousebind>
436     <mousebind button="Left" action="Click">
437       <action name="ToggleOmnipresent"/>
438     </mousebind>
439   </context>
440
441   <context name="Shade">
442     <mousebind button="Left" action="Press">
443       <action name="Focus"/>
444       <action name="Raise"/>
445     </mousebind>
446     <mousebind button="Left" action="Click">
447       <action name="ToggleShade"/>
448     </mousebind>
449   </context>
450
451   <context name="Iconify">
452     <mousebind button="Left" action="Press">
453       <action name="Focus"/>
454       <action name="Raise"/>
455     </mousebind>
456     <mousebind button="Left" action="Click">
457       <action name="Iconify"/>
458     </mousebind>
459   </context>
460
461   <context name="Maximize">
462     <mousebind button="Left" action="Press">
463       <action name="Focus"/>
464       <action name="Raise"/>
465       <action name="Unshade"/>
466     </mousebind>
467     <mousebind button="Middle" action="Press">
468       <action name="Focus"/>
469       <action name="Raise"/>
470       <action name="Unshade"/>
471     </mousebind>
472     <mousebind button="Right" action="Press">
473       <action name="Focus"/>
474       <action name="Raise"/>
475       <action name="Unshade"/>
476     </mousebind>
477     <mousebind button="Left" action="Click">
478       <action name="ToggleMaximizeFull"/>
479     </mousebind>
480     <mousebind button="Middle" action="Click">
481       <action name="ToggleMaximizeVert"/>
482     </mousebind>
483     <mousebind button="Right" action="Click">
484       <action name="ToggleMaximizeHorz"/>
485     </mousebind>
486   </context>
487
488   <context name="Close">
489     <mousebind button="Left" action="Press">
490       <action name="Focus"/>
491       <action name="Raise"/>
492       <action name="Unshade"/>
493     </mousebind>
494     <mousebind button="Left" action="Click">
495       <action name="Close"/>
496     </mousebind>
497   </context>
498
499   <context name="Desktop">
500     <mousebind button="Up" action="Press">
501       <action name="DesktopPrevious"/>
502     </mousebind>
503     <mousebind button="Down" action="Press">
504       <action name="DesktopNext"/>
505     </mousebind>
506
507     <mousebind button="A-Up" action="Press">
508       <action name="DesktopPrevious"/>
509     </mousebind>
510     <mousebind button="A-Down" action="Press">
511       <action name="DesktopNext"/>
512     </mousebind>
513     <mousebind button="C-A-Up" action="Press">
514       <action name="DesktopPrevious"/>
515     </mousebind>
516     <mousebind button="C-A-Down" action="Press">
517       <action name="DesktopNext"/>
518     </mousebind>
519
520     <mousebind button="Left" action="Press">
521       <action name="Focus"/>
522       <action name="Raise"/>
523     </mousebind>
524   </context>
525
526   <context name="Root">
527     <!-- Menus -->
528     <mousebind button="Middle" action="Press">
529       <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
530     </mousebind> 
531     <mousebind button="Right" action="Press">
532       <action name="ShowMenu"><menu>root-menu</menu></action>
533     </mousebind>
534   </context>
535
536   <context name="MoveResize">
537     <mousebind button="Up" action="Press">
538       <action name="DesktopPrevious"/>
539     </mousebind>
540     <mousebind button="Down" action="Press">
541       <action name="DesktopNext"/>
542     </mousebind>
543     <mousebind button="A-Up" action="Press">
544       <action name="DesktopPrevious"/>
545     </mousebind>
546     <mousebind button="A-Down" action="Press">
547       <action name="DesktopNext"/>
548     </mousebind>
549   </context>
550 </mouse>
551
552 <menu>
553   <!-- You can specify more than one menu file in here and they are all loaded,
554        just don't make menu ids clash or, well, it'll be kind of pointless -->
555
556   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
557   <file>menu.xml</file>
558   <hideDelay>200</hideDelay>
559   <middle>no</middle>
560   <submenuShowDelay>100</submenuShowDelay>
561   <applicationIcons>yes</applicationIcons>
562 </menu>
563
564 <applications>
565 <!--
566   # this is an example with comments through out. use these to make your
567   # own rules, but without the comments of course.
568
569   <application name="first element of window's WM_CLASS property (see xprop)"
570               class="second element of window's WM_CLASS property (see xprop)"
571                role="the window's WM_WINDOW_ROLE property (see xprop)">
572   # the name or the class can be set, or both. this is used to match
573   # windows when they appear. role can optionally be set as well, to
574   # further restrict your matches.
575
576   # the name, class, and role use simple wildcard matching such as those
577   # used by a shell. you can use * to match any characters and ? to match
578   # any single character.
579
580   # when multiple rules match a window, they will all be applied, in the
581   # order that they appear in this list
582
583
584     # each element can be left out or set to 'default' to specify to not 
585     # change that attribute of the window
586
587     <decor>yes</decor>
588     # enable or disable window decorations
589
590     <shade>no</shade>
591     # make the window shaded when it appears, or not
592
593     <position>
594       # the position is only used if both an x and y coordinate are provided
595       # (and not set to 'default')
596       <x>center</x>
597       # a number like 50, or 'center' to center on screen
598       <y>200</y>
599       # a number like 50, or 'center' to center on screen
600       <monitor>1</monitor>
601       # specifies the monitor in a xinerama setup.
602       # 1 is the first head, or 'mouse' for wherever the mouse is
603     </position>
604
605     <focus>yes</focus>
606     # if the window should try be given focus when it appears. if this is set
607     # to yes it doesn't guarantee the window will be given focus. some
608     # restrictions may apply, but Openbox will try to
609
610     <desktop>1</desktop>
611     # 1 is the first desktop, 'all' for all desktops
612
613     <layer>normal</layer>
614     # 'above', 'normal', or 'below'
615
616     <iconic>no</iconic>
617     # make the window iconified when it appears, or not
618
619     <skip_pager>no</skip_pager>
620     # asks to not be shown in pagers
621
622     <skip_taskbar>no</skip_taskbar>
623     # asks to not be shown in taskbars. window cycling actions will also
624     # skip past such windows
625
626     <fullscreen>yes</fullscreen>
627     # make the window in fullscreen mode when it appears
628
629     <maximized>true</maximized>
630     # 'Horizontal', 'Vertical' or boolean (yes/no)
631   </application>
632
633   # end of the example
634 -->
635 </applications>
636
637 </openbox_config>