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