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