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