]> icculus.org git repositories - mikachu/openbox.git/blob - data/rc.xml
add an <active> option for window placement, to try force new windows on the active...
[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 ont 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       avaible 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' or 'Top' -->
133 </resize>
134
135 <!-- You can reserve a portion of your screen where windows will not cover when
136      they are maximized, or when they are initially placed.
137      Many programs reserve space automatically, but you can use this in other
138      cases. -->
139 <margins>
140   <top>0</top>
141   <bottom>0</bottom>
142   <left>0</left>
143   <right>0</right>
144 </margins>
145
146 <dock>
147   <position>TopLeft</position>
148   <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
149   <floatingX>0</floatingX>
150   <floatingY>0</floatingY>
151   <noStrut>no</noStrut>
152   <stacking>Above</stacking>
153   <!-- 'Above', 'Normal', or 'Below' -->
154   <direction>Vertical</direction>
155   <!-- 'Vertical' or 'Horizontal' -->
156   <autoHide>no</autoHide>
157   <hideDelay>300</hideDelay>
158   <!-- in milliseconds (1000 = 1 second) -->
159   <showDelay>300</showDelay>
160   <!-- in milliseconds (1000 = 1 second) -->
161   <moveButton>Middle</moveButton>
162   <!-- 'Left', 'Middle', 'Right' -->
163 </dock>
164
165 <keyboard>
166   <chainQuitKey>C-g</chainQuitKey>
167
168   <!-- Keybindings for desktop switching -->
169   <keybind key="C-A-Left">
170     <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
171   </keybind>
172   <keybind key="C-A-Right">
173     <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
174   </keybind>
175   <keybind key="C-A-Up">
176     <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
177   </keybind>
178   <keybind key="C-A-Down">
179     <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
180   </keybind>
181   <keybind key="S-A-Left">
182     <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
183   </keybind>
184   <keybind key="S-A-Right">
185     <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
186   </keybind>
187   <keybind key="S-A-Up">
188     <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
189   </keybind>
190   <keybind key="S-A-Down">
191     <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
192   </keybind>
193   <keybind key="W-F1">
194     <action name="GoToDesktop"><to>1</to></action>
195   </keybind>
196   <keybind key="W-F2">
197     <action name="GoToDesktop"><to>2</to></action>
198   </keybind>
199   <keybind key="W-F3">
200     <action name="GoToDesktop"><to>3</to></action>
201   </keybind>
202   <keybind key="W-F4">
203     <action name="GoToDesktop"><to>4</to></action>
204   </keybind>
205   <keybind key="W-d">
206     <action name="ToggleShowDesktop"/>
207   </keybind>
208
209   <!-- Keybindings for windows -->
210   <keybind key="A-F4">
211     <action name="Close"/>
212   </keybind>
213   <keybind key="A-Escape">
214     <action name="Lower"/>
215     <action name="FocusToBottom"/>
216     <action name="Unfocus"/>
217   </keybind>
218   <keybind key="A-space">
219     <action name="ShowMenu"><menu>client-menu</menu></action>
220   </keybind>
221
222   <!-- Keybindings for window switching -->
223   <keybind key="A-Tab">
224     <action name="NextWindow">
225       <finalactions>
226         <action name="Focus"/>
227         <action name="Raise"/>
228         <action name="Unshade"/>
229       </finalactions>
230     </action>
231   </keybind>
232   <keybind key="A-S-Tab">
233     <action name="PreviousWindow">
234       <finalactions>
235         <action name="Focus"/>
236         <action name="Raise"/>
237         <action name="Unshade"/>
238       </finalactions>
239     </action>
240   </keybind>
241   <keybind key="C-A-Tab">
242     <action name="NextWindow">
243       <panels>yes</panels><desktop>yes</desktop>
244       <finalactions>
245         <action name="Focus"/>
246         <action name="Raise"/>
247         <action name="Unshade"/>
248       </finalactions>
249     </action>
250   </keybind>
251
252   <!-- Keybindings for running applications -->
253   <keybind key="W-e">
254     <action name="Execute">
255       <startupnotify>
256         <enabled>true</enabled>
257         <name>Konqueror</name>
258       </startupnotify>
259       <command>kfmclient openProfile filemanagement</command>
260     </action>
261   </keybind>
262 </keyboard>
263
264 <mouse>
265   <dragThreshold>8</dragThreshold>
266   <!-- number of pixels the mouse must move before a drag begins -->
267   <doubleClickTime>200</doubleClickTime>
268   <!-- in milliseconds (1000 = 1 second) -->
269   <screenEdgeWarpTime>400</screenEdgeWarpTime>
270   <!-- Time before changing desktops when the pointer touches the edge of the
271        screen while moving a window, in milliseconds (1000 = 1 second).
272        Set this to 0 to disable warping -->
273
274   <context name="Frame">
275     <mousebind button="A-Left" action="Press">
276       <action name="Focus"/>
277       <action name="Raise"/>
278     </mousebind>
279     <mousebind button="A-Left" action="Click">
280       <action name="Unshade"/>
281     </mousebind>
282     <mousebind button="A-Left" action="Drag">
283       <action name="Move"/>
284     </mousebind>
285
286     <mousebind button="A-Right" action="Press">
287       <action name="Focus"/>
288       <action name="Raise"/>
289       <action name="Unshade"/>
290     </mousebind>
291     <mousebind button="A-Right" action="Drag">
292       <action name="Resize"/>
293     </mousebind> 
294
295     <mousebind button="A-Middle" action="Press">
296       <action name="Lower"/>
297       <action name="FocusToBottom"/>
298       <action name="Unfocus"/>
299     </mousebind>
300
301     <mousebind button="A-Up" action="Click">
302       <action name="GoToDesktop"><to>previous</to></action>
303     </mousebind>
304     <mousebind button="A-Down" action="Click">
305       <action name="GoToDesktop"><to>next</to></action>
306     </mousebind>
307     <mousebind button="C-A-Up" action="Click">
308       <action name="GoToDesktop"><to>previous</to></action>
309     </mousebind>
310     <mousebind button="C-A-Down" action="Click">
311       <action name="GoToDesktop"><to>next</to></action>
312     </mousebind>
313     <mousebind button="A-S-Up" action="Click">
314       <action name="SendToDesktop"><to>previous</to></action>
315     </mousebind>
316     <mousebind button="A-S-Down" action="Click">
317       <action name="SendToDesktop"><to>next</to></action>
318     </mousebind>
319   </context>
320
321   <context name="Titlebar">
322     <mousebind button="Left" action="Press">
323       <action name="Focus"/>
324       <action name="Raise"/>
325     </mousebind>
326     <mousebind button="Left" action="Drag">
327       <action name="Move"/>
328     </mousebind>
329     <mousebind button="Left" action="DoubleClick">
330       <action name="ToggleMaximize"/>
331     </mousebind>
332
333     <mousebind button="Middle" action="Press">
334       <action name="Lower"/>
335       <action name="FocusToBottom"/>
336       <action name="Unfocus"/>
337     </mousebind>
338
339     <mousebind button="Up" action="Click">
340       <action name="Shade"/>
341       <action name="FocusToBottom"/>
342       <action name="Unfocus"/>
343       <action name="Lower"/>
344     </mousebind>
345     <mousebind button="Down" action="Click">
346       <action name="Unshade"/>
347       <action name="Raise"/>
348     </mousebind>
349
350     <mousebind button="Right" action="Press">
351       <action name="Focus"/>
352       <action name="Raise"/>
353       <action name="ShowMenu"><menu>client-menu</menu></action>
354     </mousebind>
355   </context>
356
357   <context name="Top">
358     <mousebind button="Left" action="Press">
359       <action name="Focus"/>
360       <action name="Raise"/>
361       <action name="Unshade"/>
362     </mousebind>
363     <mousebind button="Left" action="Drag">
364       <action name="Resize"><edge>top</edge></action>
365     </mousebind>
366   </context>
367
368   <context name="Left">
369     <mousebind button="Left" action="Press">
370       <action name="Focus"/>
371       <action name="Raise"/>
372     </mousebind>
373     <mousebind button="Left" action="Drag">
374       <action name="Resize"><edge>left</edge></action>
375     </mousebind>
376   </context>
377
378   <context name="Right">
379     <mousebind button="Left" action="Press">
380       <action name="Focus"/>
381       <action name="Raise"/>
382     </mousebind>
383     <mousebind button="Left" action="Drag">
384       <action name="Resize"><edge>right</edge></action>
385     </mousebind>
386   </context>
387
388   <context name="Bottom">
389     <mousebind button="Left" action="Press">
390       <action name="Focus"/>
391       <action name="Raise"/>
392     </mousebind>
393     <mousebind button="Left" action="Drag">
394       <action name="Resize"><edge>bottom</edge></action>
395     </mousebind>
396
397     <mousebind button="Middle" action="Press">
398       <action name="Lower"/>
399       <action name="FocusToBottom"/>
400       <action name="Unfocus"/>
401     </mousebind>
402
403     <mousebind button="Right" action="Press">
404       <action name="Focus"/>
405       <action name="Raise"/>
406       <action name="ShowMenu"><menu>client-menu</menu></action>
407     </mousebind>
408   </context>
409
410   <context name="BLCorner">
411     <mousebind button="Left" action="Press">
412       <action name="Focus"/>
413       <action name="Raise"/>
414     </mousebind>
415     <mousebind button="Left" action="Drag">
416       <action name="Resize"><edge>bottomleft</edge></action>
417     </mousebind>
418   </context>
419
420   <context name="BRCorner">
421     <mousebind button="Left" action="Press">
422       <action name="Focus"/>
423       <action name="Raise"/>
424     </mousebind>
425     <mousebind button="Left" action="Drag">
426       <action name="Resize"><edge>bottomright</edge></action>
427     </mousebind>
428   </context>
429
430   <context name="TLCorner">
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="Drag">
437       <action name="Resize"><edge>topleft</edge></action>
438     </mousebind>
439   </context>
440
441   <context name="TRCorner">
442     <mousebind button="Left" action="Press">
443       <action name="Focus"/>
444       <action name="Raise"/>
445       <action name="Unshade"/>
446     </mousebind>
447     <mousebind button="Left" action="Drag">
448       <action name="Resize"><edge>topright</edge></action>
449     </mousebind>
450   </context>
451
452   <context name="Client">
453     <mousebind button="Left" action="Press">
454       <action name="Focus"/>
455       <action name="Raise"/>
456     </mousebind>
457     <mousebind button="Middle" action="Press">
458       <action name="Focus"/>
459       <action name="Raise"/>
460     </mousebind>
461     <mousebind button="Right" action="Press">
462       <action name="Focus"/>
463       <action name="Raise"/>
464     </mousebind>
465   </context>
466
467   <context name="Icon">
468     <mousebind button="Left" action="Press">
469       <action name="Focus"/>
470       <action name="Raise"/>
471       <action name="Unshade"/>
472       <action name="ShowMenu"><menu>client-menu</menu></action>
473     </mousebind>
474     <mousebind button="Right" action="Press">
475       <action name="Focus"/>
476       <action name="Raise"/>
477       <action name="ShowMenu"><menu>client-menu</menu></action>
478     </mousebind>
479   </context>
480
481   <context name="AllDesktops">
482     <mousebind button="Left" action="Press">
483       <action name="Focus"/>
484       <action name="Raise"/>
485       <action name="Unshade"/>
486     </mousebind>
487     <mousebind button="Left" action="Click">
488       <action name="ToggleOmnipresent"/>
489     </mousebind>
490   </context>
491
492   <context name="Shade">
493     <mousebind button="Left" action="Press">
494       <action name="Focus"/>
495       <action name="Raise"/>
496     </mousebind>
497     <mousebind button="Left" action="Click">
498       <action name="ToggleShade"/>
499     </mousebind>
500   </context>
501
502   <context name="Iconify">
503     <mousebind button="Left" action="Press">
504       <action name="Focus"/>
505       <action name="Raise"/>
506     </mousebind>
507     <mousebind button="Left" action="Click">
508       <action name="Iconify"/>
509     </mousebind>
510   </context>
511
512   <context name="Maximize">
513     <mousebind button="Left" action="Press">
514       <action name="Focus"/>
515       <action name="Raise"/>
516       <action name="Unshade"/>
517     </mousebind>
518     <mousebind button="Middle" action="Press">
519       <action name="Focus"/>
520       <action name="Raise"/>
521       <action name="Unshade"/>
522     </mousebind>
523     <mousebind button="Right" action="Press">
524       <action name="Focus"/>
525       <action name="Raise"/>
526       <action name="Unshade"/>
527     </mousebind>
528     <mousebind button="Left" action="Click">
529       <action name="ToggleMaximize"/>
530     </mousebind>
531     <mousebind button="Middle" action="Click">
532       <action name="ToggleMaximize"><direction>vertical</direction></action>
533     </mousebind>
534     <mousebind button="Right" action="Click">
535       <action name="ToggleMaximize"><direction>horizontal</direction></action>
536     </mousebind>
537   </context>
538
539   <context name="Close">
540     <mousebind button="Left" action="Press">
541       <action name="Focus"/>
542       <action name="Raise"/>
543       <action name="Unshade"/>
544     </mousebind>
545     <mousebind button="Left" action="Click">
546       <action name="Close"/>
547     </mousebind>
548   </context>
549
550   <context name="Desktop">
551     <mousebind button="Up" action="Press">
552       <action name="GoToDesktop"><to>previous</to></action>
553     </mousebind>
554     <mousebind button="Down" action="Press">
555       <action name="GoToDesktop"><to>next</to></action>
556     </mousebind>
557
558     <mousebind button="A-Up" action="Press">
559       <action name="GoToDesktop"><to>previous</to></action>
560     </mousebind>
561     <mousebind button="A-Down" action="Press">
562       <action name="GoToDesktop"><to>next</to></action>
563     </mousebind>
564     <mousebind button="C-A-Up" action="Press">
565       <action name="GoToDesktop"><to>previous</to></action>
566     </mousebind>
567     <mousebind button="C-A-Down" action="Press">
568       <action name="GoToDesktop"><to>next</to></action>
569     </mousebind>
570
571     <mousebind button="Left" action="Press">
572       <action name="Focus"/>
573       <action name="Raise"/>
574     </mousebind>
575     <mousebind button="Right" action="Press">
576       <action name="Focus"/>
577       <action name="Raise"/>
578     </mousebind>
579   </context>
580
581   <context name="Root">
582     <!-- Menus -->
583     <mousebind button="Middle" action="Press">
584       <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
585     </mousebind> 
586     <mousebind button="Right" action="Press">
587       <action name="ShowMenu"><menu>root-menu</menu></action>
588     </mousebind>
589   </context>
590
591   <context name="MoveResize">
592     <mousebind button="Up" action="Press">
593       <action name="GoToDesktop"><to>previous</to></action>
594     </mousebind>
595     <mousebind button="Down" action="Press">
596       <action name="GoToDesktop"><to>next</to></action>
597     </mousebind>
598     <mousebind button="A-Up" action="Press">
599       <action name="GoToDesktop"><to>previous</to></action>
600     </mousebind>
601     <mousebind button="A-Down" action="Press">
602       <action name="GoToDesktop"><to>next</to></action>
603     </mousebind>
604   </context>
605 </mouse>
606
607 <menu>
608   <!-- You can specify more than one menu file in here and they are all loaded,
609        just don't make menu ids clash or, well, it'll be kind of pointless -->
610
611   <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
612   <file>menu.xml</file>
613   <hideDelay>200</hideDelay>
614   <middle>no</middle>
615   <submenuShowDelay>100</submenuShowDelay>
616   <applicationIcons>yes</applicationIcons>
617 </menu>
618
619 <applications>
620 <!--
621   # this is an example with comments through out. use these to make your
622   # own rules, but without the comments of course.
623
624   <application name="first element of window's WM_CLASS property (see xprop)"
625               class="second element of window's WM_CLASS property (see xprop)"
626                role="the window's WM_WINDOW_ROLE property (see xprop)">
627   # the name or the class can be set, or both. this is used to match
628   # windows when they appear. role can optionally be set as well, to
629   # further restrict your matches.
630
631   # the name, class, and role use simple wildcard matching such as those
632   # used by a shell. you can use * to match any characters and ? to match
633   # any single character.
634
635   # when multiple rules match a window, they will all be applied, in the
636   # order that they appear in this list
637
638
639     # each element can be left out or set to 'default' to specify to not 
640     # change that attribute of the window
641
642     <decor>yes</decor>
643     # enable or disable window decorations
644
645     <shade>no</shade>
646     # make the window shaded when it appears, or not
647
648     <position>
649       # the position is only used if both an x and y coordinate are provided
650       # (and not set to 'default')
651       <x>center</x>
652       # a number like 50, or 'center' to center on screen. use a negative number
653       # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
654       # right edge (or bottom).
655       <y>200</y>
656       <monitor>1</monitor>
657       # specifies the monitor in a xinerama setup.
658       # 1 is the first head, or 'mouse' for wherever the mouse is
659     </position>
660
661     <focus>yes</focus>
662     # if the window should try be given focus when it appears. if this is set
663     # to yes it doesn't guarantee the window will be given focus. some
664     # restrictions may apply, but Openbox will try to
665
666     <desktop>1</desktop>
667     # 1 is the first desktop, 'all' for all desktops
668
669     <layer>normal</layer>
670     # 'above', 'normal', or 'below'
671
672     <iconic>no</iconic>
673     # make the window iconified when it appears, or not
674
675     <skip_pager>no</skip_pager>
676     # asks to not be shown in pagers
677
678     <skip_taskbar>no</skip_taskbar>
679     # asks to not be shown in taskbars. window cycling actions will also
680     # skip past such windows
681
682     <fullscreen>yes</fullscreen>
683     # make the window in fullscreen mode when it appears
684
685     <maximized>true</maximized>
686     # 'Horizontal', 'Vertical' or boolean (yes/no)
687   </application>
688
689   # end of the example
690 -->
691 </applications>
692
693 </openbox_config>