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