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