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