Add preset config files for lxpanel lxpanel and openbox.
[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 </keyboard>
281
282
283 <mouse>
284 <dragThreshold>8</dragThreshold>
285 <!-- number of pixels the mouse must move before a drag begins -->
286 <doubleClickTime>200</doubleClickTime>
287 <!-- in milliseconds (1000 = 1 second) -->
288 <screenEdgeWarpTime>400</screenEdgeWarpTime>
289 <!-- Time before changing desktops when the pointer touches the edge of the
290 screen while moving a window, in milliseconds (1000 = 1 second).
291 Set this to 0 to disable warping -->
292
293 <context name="Frame">
294 <mousebind button="A-Left" action="Press">
295 <action name="Focus"/>
296 <action name="Raise"/>
297 </mousebind>
298 <mousebind button="A-Left" action="Click">
299 <action name="Unshade"/>
300 </mousebind>
301 <mousebind button="A-Left" action="Drag">
302 <action name="Move"/>
303 </mousebind>
304
305 <mousebind button="A-Right" action="Press">
306 <action name="Focus"/>
307 <action name="Raise"/>
308 <action name="Unshade"/>
309 </mousebind>
310 <mousebind button="A-Right" action="Drag">
311 <action name="Resize"/>
312 </mousebind>
313
314 <mousebind button="A-Middle" action="Press">
315 <action name="Lower"/>
316 <action name="FocusToBottom"/>
317 <action name="Unfocus"/>
318 </mousebind>
319
320 <mousebind button="A-Up" action="Click">
321 <action name="DesktopPrevious"/>
322 </mousebind>
323 <mousebind button="A-Down" action="Click">
324 <action name="DesktopNext"/>
325 </mousebind>
326 <mousebind button="C-A-Up" action="Click">
327 <action name="DesktopPrevious"/>
328 </mousebind>
329 <mousebind button="C-A-Down" action="Click">
330 <action name="DesktopNext"/>
331 </mousebind>
332 <mousebind button="A-S-Up" action="Click">
333 <action name="SendToDesktopPrevious"/>
334 </mousebind>
335 <mousebind button="A-S-Down" action="Click">
336 <action name="SendToDesktopNext"/>
337 </mousebind>
338 </context>
339
340 <context name="Titlebar">
341 <mousebind button="Left" action="Press">
342 <action name="Focus"/>
343 <action name="Raise"/>
344 </mousebind>
345 <mousebind button="Left" action="Drag">
346 <action name="Move"/>
347 </mousebind>
348 <mousebind button="Left" action="DoubleClick">
349 <action name="ToggleMaximizeFull"/>
350 </mousebind>
351
352 <mousebind button="Middle" action="Press">
353 <action name="Lower"/>
354 <action name="FocusToBottom"/>
355 <action name="Unfocus"/>
356 </mousebind>
357
358 <mousebind button="Up" action="Click">
359 <action name="Shade"/>
360 <action name="FocusToBottom"/>
361 <action name="Unfocus"/>
362 <action name="Lower"/>
363 </mousebind>
364 <mousebind button="Down" action="Click">
365 <action name="Unshade"/>
366 <action name="Raise"/>
367 </mousebind>
368
369 <mousebind button="Right" action="Press">
370 <action name="Focus"/>
371 <action name="Raise"/>
372 <action name="ShowMenu"><menu>client-menu</menu></action>
373 </mousebind>
374 </context>
375
376 <context name="Top">
377 <mousebind button="Left" action="Press">
378 <action name="Focus"/>
379 <action name="Raise"/>
380 <action name="Unshade"/>
381 </mousebind>
382 <mousebind button="Left" action="Drag">
383 <action name="Resize"><edge>top</edge></action>
384 </mousebind>
385 </context>
386
387 <context name="Left">
388 <mousebind button="Left" action="Press">
389 <action name="Focus"/>
390 <action name="Raise"/>
391 </mousebind>
392 <mousebind button="Left" action="Drag">
393 <action name="Resize"><edge>left</edge></action>
394 </mousebind>
395 </context>
396
397 <context name="Right">
398 <mousebind button="Left" action="Press">
399 <action name="Focus"/>
400 <action name="Raise"/>
401 </mousebind>
402 <mousebind button="Left" action="Drag">
403 <action name="Resize"><edge>right</edge></action>
404 </mousebind>
405 </context>
406
407 <context name="Bottom">
408 <mousebind button="Left" action="Press">
409 <action name="Focus"/>
410 <action name="Raise"/>
411 </mousebind>
412 <mousebind button="Left" action="Drag">
413 <action name="Resize"><edge>bottom</edge></action>
414 </mousebind>
415
416 <mousebind button="Middle" action="Press">
417 <action name="Lower"/>
418 <action name="FocusToBottom"/>
419 <action name="Unfocus"/>
420 </mousebind>
421
422 <mousebind button="Right" action="Press">
423 <action name="Focus"/>
424 <action name="Raise"/>
425 <action name="ShowMenu"><menu>client-menu</menu></action>
426 </mousebind>
427 </context>
428
429 <context name="BLCorner">
430 <mousebind button="Left" action="Press">
431 <action name="Focus"/>
432 <action name="Raise"/>
433 </mousebind>
434 <mousebind button="Left" action="Drag">
435 <action name="Resize"/>
436 </mousebind>
437 </context>
438
439 <context name="BRCorner">
440 <mousebind button="Left" action="Press">
441 <action name="Focus"/>
442 <action name="Raise"/>
443 </mousebind>
444 <mousebind button="Left" action="Drag">
445 <action name="Resize"/>
446 </mousebind>
447 </context>
448
449 <context name="TLCorner">
450 <mousebind button="Left" action="Press">
451 <action name="Focus"/>
452 <action name="Raise"/>
453 <action name="Unshade"/>
454 </mousebind>
455 <mousebind button="Left" action="Drag">
456 <action name="Resize"/>
457 </mousebind>
458 </context>
459
460 <context name="TRCorner">
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="Client">
472 <mousebind button="Left" action="Press">
473 <action name="Focus"/>
474 <action name="Raise"/>
475 </mousebind>
476 <mousebind button="Middle" action="Press">
477 <action name="Focus"/>
478 <action name="Raise"/>
479 </mousebind>
480 <mousebind button="Right" action="Press">
481 <action name="Focus"/>
482 <action name="Raise"/>
483 </mousebind>
484 </context>
485
486 <context name="Icon">
487 <mousebind button="Left" action="Press">
488 <action name="Focus"/>
489 <action name="Raise"/>
490 <action name="Unshade"/>
491 <action name="ShowMenu"><menu>client-menu</menu></action>
492 </mousebind>
493 <mousebind button="Right" action="Press">
494 <action name="Focus"/>
495 <action name="Raise"/>
496 <action name="ShowMenu"><menu>client-menu</menu></action>
497 </mousebind>
498 </context>
499
500 <context name="AllDesktops">
501 <mousebind button="Left" action="Press">
502 <action name="Focus"/>
503 <action name="Raise"/>
504 <action name="Unshade"/>
505 </mousebind>
506 <mousebind button="Left" action="Click">
507 <action name="ToggleOmnipresent"/>
508 </mousebind>
509 </context>
510
511 <context name="Shade">
512 <mousebind button="Left" action="Press">
513 <action name="Focus"/>
514 <action name="Raise"/>
515 </mousebind>
516 <mousebind button="Left" action="Click">
517 <action name="ToggleShade"/>
518 </mousebind>
519 </context>
520
521 <context name="Iconify">
522 <mousebind button="Left" action="Press">
523 <action name="Focus"/>
524 <action name="Raise"/>
525 </mousebind>
526 <mousebind button="Left" action="Click">
527 <action name="Iconify"/>
528 </mousebind>
529 </context>
530
531 <context name="Maximize">
532 <mousebind button="Left" action="Press">
533 <action name="Focus"/>
534 <action name="Raise"/>
535 <action name="Unshade"/>
536 </mousebind>
537 <mousebind button="Middle" action="Press">
538 <action name="Focus"/>
539 <action name="Raise"/>
540 <action name="Unshade"/>
541 </mousebind>
542 <mousebind button="Right" action="Press">
543 <action name="Focus"/>
544 <action name="Raise"/>
545 <action name="Unshade"/>
546 </mousebind>
547 <mousebind button="Left" action="Click">
548 <action name="ToggleMaximizeFull"/>
549 </mousebind>
550 <mousebind button="Middle" action="Click">
551 <action name="ToggleMaximizeVert"/>
552 </mousebind>
553 <mousebind button="Right" action="Click">
554 <action name="ToggleMaximizeHorz"/>
555 </mousebind>
556 </context>
557
558 <context name="Close">
559 <mousebind button="Left" action="Press">
560 <action name="Focus"/>
561 <action name="Raise"/>
562 <action name="Unshade"/>
563 </mousebind>
564 <mousebind button="Left" action="Click">
565 <action name="Close"/>
566 </mousebind>
567 </context>
568
569 <context name="Desktop">
570 <mousebind button="Up" action="Click">
571 <action name="DesktopPrevious"/>
572 </mousebind>
573 <mousebind button="Down" action="Click">
574 <action name="DesktopNext"/>
575 </mousebind>
576
577 <mousebind button="A-Up" action="Click">
578 <action name="DesktopPrevious"/>
579 </mousebind>
580 <mousebind button="A-Down" action="Click">
581 <action name="DesktopNext"/>
582 </mousebind>
583 <mousebind button="C-A-Up" action="Click">
584 <action name="DesktopPrevious"/>
585 </mousebind>
586 <mousebind button="C-A-Down" action="Click">
587 <action name="DesktopNext"/>
588 </mousebind>
589
590 <mousebind button="Left" action="Press">
591 <action name="Focus"/>
592 <action name="Raise"/>
593 </mousebind>
594 <mousebind button="Right" action="Press">
595 <action name="Focus"/>
596 <action name="Raise"/>
597 </mousebind>
598 </context>
599
600 <context name="Root">
601 <!-- Menus -->
602 <mousebind button="Middle" action="Press">
603 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
604 </mousebind>
605 <mousebind button="Right" action="Press">
606 <action name="ShowMenu"><menu>root-menu</menu></action>
607 </mousebind>
608 </context>
609
610 <context name="MoveResize">
611 <mousebind button="Up" action="Click">
612 <action name="DesktopPrevious"/>
613 </mousebind>
614 <mousebind button="Down" action="Click">
615 <action name="DesktopNext"/>
616 </mousebind>
617 <mousebind button="A-Up" action="Click">
618 <action name="DesktopPrevious"/>
619 </mousebind>
620 <mousebind button="A-Down" action="Click">
621 <action name="DesktopNext"/>
622 </mousebind>
623 </context>
624 </mouse>
625
626 <menu>
627 <!-- You can specify more than one menu file in here and they are all loaded,
628 just don't make menu ids clash or, well, it'll be kind of pointless -->
629
630 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
631 <file>@prefix@/share/lxde/openbox/menu.xml</file>
632 <hideDelay>200</hideDelay>
633 <!-- if a press-release lasts longer than this setting (in milliseconds), the
634 menu is hidden again -->
635 <middle>no</middle>
636 <!-- center submenus vertically about the parent entry -->
637 <submenuShowDelay>100</submenuShowDelay>
638 <!-- this one is easy, time to delay before showing a submenu after hovering
639 over the parent entry -->
640 <applicationIcons>yes</applicationIcons>
641 <!-- controls if icons appear in the client-list-(combined-)menu -->
642 <manageDesktops>yes</manageDesktops>
643 <!-- show the manage desktops section in the client-list-(combined-)menu -->
644 </menu>
645
646 <applications>
647 <!--
648 # this is an example with comments through out. use these to make your
649 # own rules, but without the comments of course.
650
651 <application name="first element of window's WM_CLASS property (see xprop)"
652 class="second element of window's WM_CLASS property (see xprop)"
653 role="the window's WM_WINDOW_ROLE property (see xprop)">
654 # the name or the class can be set, or both. this is used to match
655 # windows when they appear. role can optionally be set as well, to
656 # further restrict your matches.
657
658 # the name, class, and role use simple wildcard matching such as those
659 # used by a shell. you can use * to match any characters and ? to match
660 # any single character.
661
662 # when multiple rules match a window, they will all be applied, in the
663 # order that they appear in this list
664
665
666 # each element can be left out or set to 'default' to specify to not
667 # change that attribute of the window
668
669 <decor>yes</decor>
670 # enable or disable window decorations
671
672 <shade>no</shade>
673 # make the window shaded when it appears, or not
674
675 <position>
676 # the position is only used if both an x and y coordinate are provided
677 # (and not set to 'default')
678 <x>center</x>
679 # a number like 50, or 'center' to center on screen. use a negative number
680 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
681 # right edge (or bottom).
682 <y>200</y>
683 <monitor>1</monitor>
684 # specifies the monitor in a xinerama setup.
685 # 1 is the first head, or 'mouse' for wherever the mouse is
686 </position>
687
688 <focus>yes</focus>
689 # if the window should try be given focus when it appears. if this is set
690 # to yes it doesn't guarantee the window will be given focus. some
691 # restrictions may apply, but Openbox will try to
692
693 <desktop>1</desktop>
694 # 1 is the first desktop, 'all' for all desktops
695
696 <layer>normal</layer>
697 # 'above', 'normal', or 'below'
698
699 <iconic>no</iconic>
700 # make the window iconified when it appears, or not
701
702 <skip_pager>no</skip_pager>
703 # asks to not be shown in pagers
704
705 <skip_taskbar>no</skip_taskbar>
706 # asks to not be shown in taskbars. window cycling actions will also
707 # skip past such windows
708
709 <fullscreen>yes</fullscreen>
710 # make the window in fullscreen mode when it appears
711
712 <maximized>true</maximized>
713 # 'Horizontal', 'Vertical' or boolean (yes/no)
714 </application>
715
716 # end of the example
717 -->
718 </applications>
719
720 </openbox_config>