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