slitaz-configs view rootfs/etc/xdg/openbox/rc.xml @ rev 217

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