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