smarter mouse wheel default actions
[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 </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 </desktops>
120
121 <resize>
122   <drawContents>yes</drawContents>
123   <popupShow>Nonpixel</popupShow>
124   <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
125   <popupPosition>Center</popupPosition>
126   <!-- 'Center' or 'Top' -->
127 </resize>
128
129 <!-- You can reserve a portion of your screen where windows will not cover when
130      they are maximized, or when they are initially placed.
131      Many programs reserve space automatically, but you can use this in other
132      cases. -->
133 <margins>
134   <top>0</top>
135   <bottom>0</bottom>
136   <left>0</left>
137   <right>0</right>
138 </margins>
139
140 <dock>
141   <position>TopLeft</position>
142   <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
143   <floatingX>0</floatingX>
144   <floatingY>0</floatingY>
145   <noStrut>no</noStrut>
146   <stacking>Above</stacking>
147   <!-- 'Above', 'Normal', or 'Below' -->
148   <direction>Vertical</direction>
149   <!-- 'Vertical' or 'Horizontal' -->
150   <autoHide>no</autoHide>
151   <hideDelay>300</hideDelay>
152   <!-- in milliseconds (1000 = 1 second) -->
153   <showDelay>300</showDelay>
154   <!-- in milliseconds (1000 = 1 second) -->
155   <moveButton>Middle</moveButton>
156   <!-- 'Left', 'Middle', 'Right' -->
157 </dock>
158
159 <keyboard>
160   <chainQuitKey>C-g</chainQuitKey>
161
162   <!-- Keybindings for desktop switching -->
163   <keybind key="C-A-Left">
164     <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
165   </keybind>
166   <keybind key="C-A-Right">
167     <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
168   </keybind>
169   <keybind key="C-A-Up">
170     <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
171   </keybind>
172   <keybind key="C-A-Down">
173     <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
174   </keybind>
175   <keybind key="S-A-Left">
176     <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
177   </keybind>
178   <keybind key="S-A-Right">
179     <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
180   </keybind>
181   <keybind key="S-A-Up">
182     <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
183   </keybind>
184   <keybind key="S-A-Down">
185     <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
186   </keybind>
187   <keybind key="W-F1">
188     <action name="GoToDesktop"><to>1</to></action>
189   </keybind>
190   <keybind key="W-F2">
191     <action name="GoToDesktop"><to>2</to></action>
192   </keybind>
193   <keybind key="W-F3">
194     <action name="GoToDesktop"><to>3</to></action>
195   </keybind>
196   <keybind key="W-F4">
197     <action name="GoToDesktop"><to>4</to></action>
198   </keybind>
199   <keybind key="W-d">
200     <action name="ToggleShowDesktop"/>
201   </keybind>
202
203   <!-- Keybindings for windows -->
204   <keybind key="A-F4">
205     <action name="Close"/>
206   </keybind>
207   <keybind key="A-Escape">
208     <action name="Lower"/>
209     <action name="FocusToBottom"/>
210     <action name="Unfocus"/>
211   </keybind>
212   <keybind key="A-space">
213     <action name="ShowMenu"><menu>client-menu</menu></action>
214   </keybind>
215
216   <!-- Keybindings for window switching -->
217   <keybind key="A-Tab">
218     <action name="NextWindow">
219       <finalactions>
220         <action name="Focus"/>
221         <action name="Raise"/>
222         <action name="Unshade"/>
223       </finalactions>
224     </action>
225   </keybind>
226   <keybind key="A-S-Tab">
227     <action name="PreviousWindow">
228       <finalactions>
229         <action name="Focus"/>
230         <action name="Raise"/>
231         <action name="Unshade"/>
232       </finalactions>
233     </action>
234   </keybind>
235   <keybind key="C-A-Tab">
236     <action name="NextWindow">
237       <panels>yes</panels><desktop>yes</desktop>
238       <finalactions>
239         <action name="Focus"/>
240         <action name="Raise"/>
241         <action name="Unshade"/>
242       </finalactions>
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        0 disables 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="GoToDesktop"><to>previous</to></action>
297     </mousebind>
298     <mousebind button="A-Down" action="Click">
299       <action name="GoToDesktop"><to>next</to></action>
300     </mousebind>
301     <mousebind button="C-A-Up" action="Click">
302       <action name="GoToDesktop"><to>previous</to></action>
303     </mousebind>
304     <mousebind button="C-A-Down" action="Click">
305       <action name="GoToDesktop"><to>next</to></action>
306     </mousebind>
307     <mousebind button="A-S-Up" action="Click">
308       <action name="SendToDesktop"><to>previous</to></action>
309     </mousebind>
310     <mousebind button="A-S-Down" action="Click">
311       <action name="SendToDesktop"><to>next</to></action>
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="ToggleMaximize"/>
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="if">
335         <shaded>no</shaded>
336         <then>
337           <action name="Shade"/>
338           <action name="FocusToBottom"/>
339           <action name="Unfocus"/>
340           <action name="Lower"/>
341         </then>
342       </action>
343     </mousebind>
344     <mousebind button="Down" action="Click">
345       <action name="if">
346         <shaded>yes</shaded>
347         <then>
348           <action name="Unshade"/>
349           <action name="Raise"/>
350         </then>
351       </action>
352     </mousebind>
353
354     <mousebind button="Right" action="Press">
355       <action name="Focus"/>
356       <action name="Raise"/>
357       <action name="ShowMenu"><menu>client-menu</menu></action>
358     </mousebind>
359   </context>
360
361   <context name="Top">
362     <mousebind button="Left" action="Press">
363       <action name="Focus"/>
364       <action name="Raise"/>
365       <action name="Unshade"/>
366     </mousebind>
367     <mousebind button="Left" action="Drag">
368       <action name="Resize"><edge>top</edge></action>
369     </mousebind>
370   </context>
371
372   <context name="Left">
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>left</edge></action>
379     </mousebind>
380   </context>
381
382   <context name="Right">
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>right</edge></action>
389     </mousebind>
390   </context>
391
392   <context name="Bottom">
393     <mousebind button="Left" action="Press">
394       <action name="Focus"/>
395       <action name="Raise"/>
396     </mousebind>
397     <mousebind button="Left" action="Drag">
398       <action name="Resize"><edge>bottom</edge></action>
399     </mousebind>
400
401     <mousebind button="Middle" action="Press">
402       <action name="Lower"/>
403       <action name="FocusToBottom"/>
404       <action name="Unfocus"/>
405     </mousebind>
406
407     <mousebind button="Right" action="Press">
408       <action name="Focus"/>
409       <action name="Raise"/>
410       <action name="ShowMenu"><menu>client-menu</menu></action>
411     </mousebind>
412   </context>
413
414   <context name="BLCorner">
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"><edge>bottomleft</edge></action>
421     </mousebind>
422   </context>
423
424   <context name="BRCorner">
425     <mousebind button="Left" action="Press">
426       <action name="Focus"/>
427       <action name="Raise"/>
428     </mousebind>
429     <mousebind button="Left" action="Drag">
430       <action name="Resize"><edge>bottomright</edge></action>
431     </mousebind>
432   </context>
433
434   <context name="TLCorner">
435     <mousebind button="Left" action="Press">
436       <action name="Focus"/>
437       <action name="Raise"/>
438       <action name="Unshade"/>
439     </mousebind>
440     <mousebind button="Left" action="Drag">
441       <action name="Resize"><edge>topleft</edge></action>
442     </mousebind>
443   </context>
444
445   <context name="TRCorner">
446     <mousebind button="Left" action="Press">
447       <action name="Focus"/>
448       <action name="Raise"/>
449       <action name="Unshade"/>
450     </mousebind>
451     <mousebind button="Left" action="Drag">
452       <action name="Resize"><edge>topright</edge></action>
453     </mousebind>
454   </context>
455
456   <context name="Client">
457     <mousebind button="Left" action="Press">
458       <action name="Focus"/>
459       <action name="Raise"/>
460     </mousebind>
461     <mousebind button="Middle" action="Press">
462       <action name="Focus"/>
463       <action name="Raise"/>
464     </mousebind>
465     <mousebind button="Right" action="Press">
466       <action name="Focus"/>
467       <action name="Raise"/>
468     </mousebind>
469   </context>
470
471   <context name="Icon">
472     <mousebind button="Left" action="Press">
473       <action name="Focus"/>
474       <action name="Raise"/>
475       <action name="Unshade"/>
476       <action name="ShowMenu"><menu>client-menu</menu></action>
477     </mousebind>
478     <mousebind button="Right" action="Press">
479       <action name="Focus"/>
480       <action name="Raise"/>
481       <action name="ShowMenu"><menu>client-menu</menu></action>
482     </mousebind>
483   </context>
484
485   <context name="AllDesktops">
486     <mousebind button="Left" action="Press">
487       <action name="Focus"/>
488       <action name="Raise"/>
489       <action name="Unshade"/>
490     </mousebind>
491     <mousebind button="Left" action="Click">
492       <action name="ToggleOmnipresent"/>
493     </mousebind>
494   </context>
495
496   <context name="Shade">
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="ToggleShade"/>
503     </mousebind>
504   </context>
505
506   <context name="Iconify">
507     <mousebind button="Left" action="Press">
508       <action name="Focus"/>
509       <action name="Raise"/>
510     </mousebind>
511     <mousebind button="Left" action="Click">
512       <action name="Iconify"/>
513     </mousebind>
514   </context>
515
516   <context name="Maximize">
517     <mousebind button="Left" action="Press">
518       <action name="Focus"/>
519       <action name="Raise"/>
520       <action name="Unshade"/>
521     </mousebind>
522     <mousebind button="Middle" action="Press">
523       <action name="Focus"/>
524       <action name="Raise"/>
525       <action name="Unshade"/>
526     </mousebind>
527     <mousebind button="Right" action="Press">
528       <action name="Focus"/>
529       <action name="Raise"/>
530       <action name="Unshade"/>
531     </mousebind>
532     <mousebind button="Left" action="Click">
533       <action name="ToggleMaximize"/>
534     </mousebind>
535     <mousebind button="Middle" action="Click">
536       <action name="ToggleMaximize"><direction>vertical</direction></action>
537     </mousebind>
538     <mousebind button="Right" action="Click">
539       <action name="ToggleMaximize"><direction>horizontal</direction></action>
540     </mousebind>
541   </context>
542
543   <context name="Close">
544     <mousebind button="Left" action="Press">
545       <action name="Focus"/>
546       <action name="Raise"/>
547       <action name="Unshade"/>
548     </mousebind>
549     <mousebind button="Left" action="Click">
550       <action name="Close"/>
551     </mousebind>
552   </context>
553
554   <context name="Desktop">
555     <mousebind button="Up" action="Press">
556       <action name="GoToDesktop"><to>previous</to></action>
557     </mousebind>
558     <mousebind button="Down" action="Press">
559       <action name="GoToDesktop"><to>next</to></action>
560     </mousebind>
561
562     <mousebind button="A-Up" action="Press">
563       <action name="GoToDesktop"><to>previous</to></action>
564     </mousebind>
565     <mousebind button="A-Down" action="Press">
566       <action name="GoToDesktop"><to>next</to></action>
567     </mousebind>
568     <mousebind button="C-A-Up" action="Press">
569       <action name="GoToDesktop"><to>previous</to></action>
570     </mousebind>
571     <mousebind button="C-A-Down" action="Press">
572       <action name="GoToDesktop"><to>next</to></action>
573     </mousebind>
574
575     <mousebind button="Left" 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="Press">
593       <action name="GoToDesktop"><to>previous</to></action>
594     </mousebind>
595     <mousebind button="Down" action="Press">
596       <action name="GoToDesktop"><to>next</to></action>
597     </mousebind>
598     <mousebind button="A-Up" action="Press">
599       <action name="GoToDesktop"><to>previous</to></action>
600     </mousebind>
601     <mousebind button="A-Down" action="Press">
602       <action name="GoToDesktop"><to>next</to></action>
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   <middle>no</middle>
615   <submenuShowDelay>100</submenuShowDelay>
616   <applicationIcons>yes</applicationIcons>
617 </menu>
618
619 <applications>
620 <!--
621   # this is an example with comments through out. use these to make your
622   # own rules, but without the comments of course.
623
624   <application name="first element of window's WM_CLASS property (see xprop)"
625               class="second element of window's WM_CLASS property (see xprop)"
626                role="the window's WM_WINDOW_ROLE property (see xprop)">
627   # the name or the class can be set, or both. this is used to match
628   # windows when they appear. role can optionally be set as well, to
629   # further restrict your matches.
630
631   # the name, class, and role use simple wildcard matching such as those
632   # used by a shell. you can use * to match any characters and ? to match
633   # any single character.
634
635   # when multiple rules match a window, they will all be applied, in the
636   # order that they appear in this list
637
638
639     # each element can be left out or set to 'default' to specify to not 
640     # change that attribute of the window
641
642     <decor>yes</decor>
643     # enable or disable window decorations
644
645     <shade>no</shade>
646     # make the window shaded when it appears, or not
647
648     <position>
649       # the position is only used if both an x and y coordinate are provided
650       # (and not set to 'default')
651       <x>center</x>
652       # a number like 50, or 'center' to center on screen. use a negative number
653       # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
654       # right edge (or bottom).
655       <y>200</y>
656       <monitor>1</monitor>
657       # specifies the monitor in a xinerama setup.
658       # 1 is the first head, or 'mouse' for wherever the mouse is
659     </position>
660
661     <focus>yes</focus>
662     # if the window should try be given focus when it appears. if this is set
663     # to yes it doesn't guarantee the window will be given focus. some
664     # restrictions may apply, but Openbox will try to
665
666     <desktop>1</desktop>
667     # 1 is the first desktop, 'all' for all desktops
668
669     <layer>normal</layer>
670     # 'above', 'normal', or 'below'
671
672     <iconic>no</iconic>
673     # make the window iconified when it appears, or not
674
675     <skip_pager>no</skip_pager>
676     # asks to not be shown in pagers
677
678     <skip_taskbar>no</skip_taskbar>
679     # asks to not be shown in taskbars. window cycling actions will also
680     # skip past such windows
681
682     <fullscreen>yes</fullscreen>
683     # make the window in fullscreen mode when it appears
684
685     <maximized>true</maximized>
686     # 'Horizontal', 'Vertical' or boolean (yes/no)
687   </application>
688
689   # end of the example
690 -->
691 </applications>
692
693 </openbox_config>