1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- Do not edit this file, it will be overwritten on install.
4 Copy the file to $HOME/.config/openbox/ instead. -->
6 <openbox_config xmlns="http://openbox.org/3.4/rc">
9 <strength>10</strength>
10 <screen_edge_strength>20</screen_edge_strength>
14 <focusNew>yes</focusNew>
15 <!-- always try to focus new windows when they appear. other rules do
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 -->
33 <policy>Smart</policy>
34 <!-- 'Smart' or 'UnderMouse' -->
36 <!-- whether to place windows in the center of the free area found or
37 the top left corner -->
41 <name>Clearlooks</name>
42 <titleLayout>NLIMC</titleLayout>
44 avaible characters are NDSLIMC, each can occur at most once.
46 L: window label (AKA title).
50 S: shade (roll up/down)
51 D: omnipresent (on all desktops).
53 <keepBorder>yes</keepBorder>
54 <animateIconify>yes</animateIconify>
55 <font place="ActiveWindow">
58 <!-- font size in points -->
60 <!-- 'bold' or 'normal' -->
62 <!-- 'italic' or 'normal' -->
64 <font place="InactiveWindow">
67 <!-- font size in points -->
69 <!-- 'bold' or 'normal' -->
71 <!-- 'italic' or 'normal' -->
73 <font place="MenuHeader">
76 <!-- font size in points -->
77 <weight>normal</weight>
78 <!-- 'bold' or 'normal' -->
80 <!-- 'italic' or 'normal' -->
82 <font place="MenuItem">
85 <!-- font size in points -->
86 <weight>normal</weight>
87 <!-- 'bold' or 'normal' -->
89 <!-- 'italic' or 'normal' -->
91 <font place="OnScreenDisplay">
94 <!-- font size in points -->
96 <!-- 'bold' or 'normal' -->
98 <!-- 'italic' or 'normal' -->
103 <!-- this stuff is only used at startup, pagers allow you to change them
106 these are default values to use when other ones are not already set
107 by other applications, or saved in your session
109 use obconf if you want to change these without having to log out
112 <firstdesk>1</firstdesk>
114 <!-- set names up here if you want to, like this:
115 <name>desktop 1</name>
116 <name>desktop 2</name>
119 <popupTime>875</popupTime>
120 <!-- The number of milliseconds to show the popup for when switching
121 desktops. Set this to 0 to disable the popup. -->
125 <drawContents>yes</drawContents>
126 <popupShow>Nonpixel</popupShow>
127 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
128 <popupPosition>Center</popupPosition>
129 <!-- 'Center' or 'Top' -->
132 <!-- You can reserve a portion of your screen where windows will not cover when
133 they are maximized, or when they are initially placed.
134 Many programs reserve space automatically, but you can use this in other
144 <position>TopLeft</position>
145 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
146 <floatingX>0</floatingX>
147 <floatingY>0</floatingY>
148 <noStrut>no</noStrut>
149 <stacking>Above</stacking>
150 <!-- 'Above', 'Normal', or 'Below' -->
151 <direction>Vertical</direction>
152 <!-- 'Vertical' or 'Horizontal' -->
153 <autoHide>no</autoHide>
154 <hideDelay>300</hideDelay>
155 <!-- in milliseconds (1000 = 1 second) -->
156 <showDelay>300</showDelay>
157 <!-- in milliseconds (1000 = 1 second) -->
158 <moveButton>Middle</moveButton>
159 <!-- 'Left', 'Middle', 'Right' -->
163 <chainQuitKey>C-g</chainQuitKey>
165 <!-- Keybindings for desktop switching -->
166 <keybind key="C-A-Left">
167 <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
169 <keybind key="C-A-Right">
170 <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
172 <keybind key="C-A-Up">
173 <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
175 <keybind key="C-A-Down">
176 <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
178 <keybind key="S-A-Left">
179 <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
181 <keybind key="S-A-Right">
182 <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
184 <keybind key="S-A-Up">
185 <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
187 <keybind key="S-A-Down">
188 <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
191 <action name="GoToDesktop"><to>1</to></action>
194 <action name="GoToDesktop"><to>2</to></action>
197 <action name="GoToDesktop"><to>3</to></action>
200 <action name="GoToDesktop"><to>4</to></action>
203 <action name="ToggleShowDesktop"/>
206 <!-- Keybindings for windows -->
208 <action name="Close"/>
210 <keybind key="A-Escape">
211 <action name="Lower"/>
212 <action name="FocusToBottom"/>
213 <action name="Unfocus"/>
215 <keybind key="A-space">
216 <action name="ShowMenu"><menu>client-menu</menu></action>
219 <!-- Keybindings for window switching -->
220 <keybind key="A-Tab">
221 <action name="NextWindow">
223 <action name="Focus"/>
224 <action name="Raise"/>
225 <action name="Unshade"/>
229 <keybind key="A-S-Tab">
230 <action name="PreviousWindow">
232 <action name="Focus"/>
233 <action name="Raise"/>
234 <action name="Unshade"/>
238 <keybind key="C-A-Tab">
239 <action name="NextWindow">
240 <panels>yes</panels><desktop>yes</desktop>
242 <action name="Focus"/>
243 <action name="Raise"/>
244 <action name="Unshade"/>
249 <!-- Keybindings for running applications -->
251 <action name="Execute">
253 <enabled>true</enabled>
254 <name>Konqueror</name>
256 <command>kfmclient openProfile filemanagement</command>
262 <dragThreshold>8</dragThreshold>
263 <!-- number of pixels the mouse must move before a drag begins -->
264 <doubleClickTime>200</doubleClickTime>
265 <!-- in milliseconds (1000 = 1 second) -->
266 <screenEdgeWarpTime>400</screenEdgeWarpTime>
267 <!-- Time before changing desktops when the pointer touches the edge of the
268 screen while moving a window, in milliseconds (1000 = 1 second).
269 Set this to 0 to disable warping -->
271 <context name="Frame">
272 <mousebind button="A-Left" action="Press">
273 <action name="Focus"/>
274 <action name="Raise"/>
276 <mousebind button="A-Left" action="Click">
277 <action name="Unshade"/>
279 <mousebind button="A-Left" action="Drag">
280 <action name="Move"/>
283 <mousebind button="A-Right" action="Press">
284 <action name="Focus"/>
285 <action name="Raise"/>
286 <action name="Unshade"/>
288 <mousebind button="A-Right" action="Drag">
289 <action name="Resize"/>
292 <mousebind button="A-Middle" action="Press">
293 <action name="Lower"/>
294 <action name="FocusToBottom"/>
295 <action name="Unfocus"/>
298 <mousebind button="A-Up" action="Click">
299 <action name="GoToDesktop"><to>previous</to></action>
301 <mousebind button="A-Down" action="Click">
302 <action name="GoToDesktop"><to>next</to></action>
304 <mousebind button="C-A-Up" action="Click">
305 <action name="GoToDesktop"><to>previous</to></action>
307 <mousebind button="C-A-Down" action="Click">
308 <action name="GoToDesktop"><to>next</to></action>
310 <mousebind button="A-S-Up" action="Click">
311 <action name="SendToDesktop"><to>previous</to></action>
313 <mousebind button="A-S-Down" action="Click">
314 <action name="SendToDesktop"><to>next</to></action>
318 <context name="Titlebar">
319 <mousebind button="Left" action="Press">
320 <action name="Focus"/>
321 <action name="Raise"/>
323 <mousebind button="Left" action="Drag">
324 <action name="Move"/>
326 <mousebind button="Left" action="DoubleClick">
327 <action name="ToggleMaximize"/>
330 <mousebind button="Middle" action="Press">
331 <action name="Lower"/>
332 <action name="FocusToBottom"/>
333 <action name="Unfocus"/>
336 <mousebind button="Up" action="Click">
340 <action name="Shade"/>
341 <action name="FocusToBottom"/>
342 <action name="Unfocus"/>
343 <action name="Lower"/>
347 <mousebind button="Down" action="Click">
351 <action name="Unshade"/>
352 <action name="Raise"/>
357 <mousebind button="Right" action="Press">
358 <action name="Focus"/>
359 <action name="Raise"/>
360 <action name="ShowMenu"><menu>client-menu</menu></action>
365 <mousebind button="Left" action="Press">
366 <action name="Focus"/>
367 <action name="Raise"/>
368 <action name="Unshade"/>
370 <mousebind button="Left" action="Drag">
371 <action name="Resize"><edge>top</edge></action>
375 <context name="Left">
376 <mousebind button="Left" action="Press">
377 <action name="Focus"/>
378 <action name="Raise"/>
380 <mousebind button="Left" action="Drag">
381 <action name="Resize"><edge>left</edge></action>
385 <context name="Right">
386 <mousebind button="Left" action="Press">
387 <action name="Focus"/>
388 <action name="Raise"/>
390 <mousebind button="Left" action="Drag">
391 <action name="Resize"><edge>right</edge></action>
395 <context name="Bottom">
396 <mousebind button="Left" action="Press">
397 <action name="Focus"/>
398 <action name="Raise"/>
400 <mousebind button="Left" action="Drag">
401 <action name="Resize"><edge>bottom</edge></action>
404 <mousebind button="Middle" action="Press">
405 <action name="Lower"/>
406 <action name="FocusToBottom"/>
407 <action name="Unfocus"/>
410 <mousebind button="Right" action="Press">
411 <action name="Focus"/>
412 <action name="Raise"/>
413 <action name="ShowMenu"><menu>client-menu</menu></action>
417 <context name="BLCorner">
418 <mousebind button="Left" action="Press">
419 <action name="Focus"/>
420 <action name="Raise"/>
422 <mousebind button="Left" action="Drag">
423 <action name="Resize"><edge>bottomleft</edge></action>
427 <context name="BRCorner">
428 <mousebind button="Left" action="Press">
429 <action name="Focus"/>
430 <action name="Raise"/>
432 <mousebind button="Left" action="Drag">
433 <action name="Resize"><edge>bottomright</edge></action>
437 <context name="TLCorner">
438 <mousebind button="Left" action="Press">
439 <action name="Focus"/>
440 <action name="Raise"/>
441 <action name="Unshade"/>
443 <mousebind button="Left" action="Drag">
444 <action name="Resize"><edge>topleft</edge></action>
448 <context name="TRCorner">
449 <mousebind button="Left" action="Press">
450 <action name="Focus"/>
451 <action name="Raise"/>
452 <action name="Unshade"/>
454 <mousebind button="Left" action="Drag">
455 <action name="Resize"><edge>topright</edge></action>
459 <context name="Client">
460 <mousebind button="Left" action="Press">
461 <action name="Focus"/>
462 <action name="Raise"/>
464 <mousebind button="Middle" action="Press">
465 <action name="Focus"/>
466 <action name="Raise"/>
468 <mousebind button="Right" action="Press">
469 <action name="Focus"/>
470 <action name="Raise"/>
474 <context name="Icon">
475 <mousebind button="Left" action="Press">
476 <action name="Focus"/>
477 <action name="Raise"/>
478 <action name="Unshade"/>
479 <action name="ShowMenu"><menu>client-menu</menu></action>
481 <mousebind button="Right" action="Press">
482 <action name="Focus"/>
483 <action name="Raise"/>
484 <action name="ShowMenu"><menu>client-menu</menu></action>
488 <context name="AllDesktops">
489 <mousebind button="Left" action="Press">
490 <action name="Focus"/>
491 <action name="Raise"/>
492 <action name="Unshade"/>
494 <mousebind button="Left" action="Click">
495 <action name="ToggleOmnipresent"/>
499 <context name="Shade">
500 <mousebind button="Left" action="Press">
501 <action name="Focus"/>
502 <action name="Raise"/>
504 <mousebind button="Left" action="Click">
505 <action name="ToggleShade"/>
509 <context name="Iconify">
510 <mousebind button="Left" action="Press">
511 <action name="Focus"/>
512 <action name="Raise"/>
514 <mousebind button="Left" action="Click">
515 <action name="Iconify"/>
519 <context name="Maximize">
520 <mousebind button="Left" action="Press">
521 <action name="Focus"/>
522 <action name="Raise"/>
523 <action name="Unshade"/>
525 <mousebind button="Middle" action="Press">
526 <action name="Focus"/>
527 <action name="Raise"/>
528 <action name="Unshade"/>
530 <mousebind button="Right" action="Press">
531 <action name="Focus"/>
532 <action name="Raise"/>
533 <action name="Unshade"/>
535 <mousebind button="Left" action="Click">
536 <action name="ToggleMaximize"/>
538 <mousebind button="Middle" action="Click">
539 <action name="ToggleMaximize"><direction>vertical</direction></action>
541 <mousebind button="Right" action="Click">
542 <action name="ToggleMaximize"><direction>horizontal</direction></action>
546 <context name="Close">
547 <mousebind button="Left" action="Press">
548 <action name="Focus"/>
549 <action name="Raise"/>
550 <action name="Unshade"/>
552 <mousebind button="Left" action="Click">
553 <action name="Close"/>
557 <context name="Desktop">
558 <mousebind button="Up" action="Click">
559 <action name="GoToDesktop"><to>previous</to></action>
561 <mousebind button="Down" action="Click">
562 <action name="GoToDesktop"><to>next</to></action>
565 <mousebind button="A-Up" action="Click">
566 <action name="GoToDesktop"><to>previous</to></action>
568 <mousebind button="A-Down" action="Click">
569 <action name="GoToDesktop"><to>next</to></action>
571 <mousebind button="C-A-Up" action="Click">
572 <action name="GoToDesktop"><to>previous</to></action>
574 <mousebind button="C-A-Down" action="Click">
575 <action name="GoToDesktop"><to>next</to></action>
578 <mousebind button="Left" action="Press">
579 <action name="Focus"/>
580 <action name="Raise"/>
584 <context name="Root">
586 <mousebind button="Middle" action="Press">
587 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
589 <mousebind button="Right" action="Press">
590 <action name="ShowMenu"><menu>root-menu</menu></action>
594 <context name="MoveResize">
595 <mousebind button="Up" action="Click">
596 <action name="GoToDesktop"><to>previous</to></action>
598 <mousebind button="Down" action="Click">
599 <action name="GoToDesktop"><to>next</to></action>
601 <mousebind button="A-Up" action="Click">
602 <action name="GoToDesktop"><to>previous</to></action>
604 <mousebind button="A-Down" action="Click">
605 <action name="GoToDesktop"><to>next</to></action>
611 <!-- You can specify more than one menu file in here and they are all loaded,
612 just don't make menu ids clash or, well, it'll be kind of pointless -->
614 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
615 <file>menu.xml</file>
616 <hideDelay>200</hideDelay>
618 <submenuShowDelay>100</submenuShowDelay>
619 <applicationIcons>yes</applicationIcons>
624 # this is an example with comments through out. use these to make your
625 # own rules, but without the comments of course.
627 <application name="first element of window's WM_CLASS property (see xprop)"
628 class="second element of window's WM_CLASS property (see xprop)"
629 role="the window's WM_WINDOW_ROLE property (see xprop)">
630 # the name or the class can be set, or both. this is used to match
631 # windows when they appear. role can optionally be set as well, to
632 # further restrict your matches.
634 # the name, class, and role use simple wildcard matching such as those
635 # used by a shell. you can use * to match any characters and ? to match
636 # any single character.
638 # when multiple rules match a window, they will all be applied, in the
639 # order that they appear in this list
642 # each element can be left out or set to 'default' to specify to not
643 # change that attribute of the window
646 # enable or disable window decorations
649 # make the window shaded when it appears, or not
652 # the position is only used if both an x and y coordinate are provided
653 # (and not set to 'default')
655 # a number like 50, or 'center' to center on screen. use a negative number
656 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
657 # right edge (or bottom).
660 # specifies the monitor in a xinerama setup.
661 # 1 is the first head, or 'mouse' for wherever the mouse is
665 # if the window should try be given focus when it appears. if this is set
666 # to yes it doesn't guarantee the window will be given focus. some
667 # restrictions may apply, but Openbox will try to
670 # 1 is the first desktop, 'all' for all desktops
672 <layer>normal</layer>
673 # 'above', 'normal', or 'below'
676 # make the window iconified when it appears, or not
678 <skip_pager>no</skip_pager>
679 # asks to not be shown in pagers
681 <skip_taskbar>no</skip_taskbar>
682 # asks to not be shown in taskbars. window cycling actions will also
683 # skip past such windows
685 <fullscreen>yes</fullscreen>
686 # make the window in fullscreen mode when it appears
688 <maximized>true</maximized>
689 # 'Horizontal', 'Vertical' or boolean (yes/no)