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