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="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
169 <keybind key="C-A-Right">
170 <action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
172 <keybind key="C-A-Up">
173 <action name="DesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
175 <keybind key="C-A-Down">
176 <action name="DesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
178 <keybind key="S-A-Left">
179 <action name="SendToDesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
181 <keybind key="S-A-Right">
182 <action name="SendToDesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
184 <keybind key="S-A-Up">
185 <action name="SendToDesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
187 <keybind key="S-A-Down">
188 <action name="SendToDesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
191 <action name="Desktop"><desktop>1</desktop></action>
194 <action name="Desktop"><desktop>2</desktop></action>
197 <action name="Desktop"><desktop>3</desktop></action>
200 <action name="Desktop"><desktop>4</desktop></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 <keybind key="A-S-Tab">
224 <action name="PreviousWindow"/>
226 <keybind key="C-A-Tab">
227 <action name="NextWindow">
228 <panels>yes</panels><desktop>yes</desktop>
232 <!-- Keybindings for running applications -->
234 <action name="Execute">
236 <enabled>true</enabled>
237 <name>Konqueror</name>
239 <command>kfmclient openProfile filemanagement</command>
245 <dragThreshold>8</dragThreshold>
246 <!-- number of pixels the mouse must move before a drag begins -->
247 <doubleClickTime>200</doubleClickTime>
248 <!-- in milliseconds (1000 = 1 second) -->
249 <screenEdgeWarpTime>400</screenEdgeWarpTime>
250 <!-- Time before changing desktops when the pointer touches the edge of the
251 screen while moving a window, in milliseconds (1000 = 1 second).
252 Set this to 0 to disable warping -->
254 <context name="Frame">
255 <mousebind button="A-Left" action="Press">
256 <action name="Focus"/>
257 <action name="Raise"/>
259 <mousebind button="A-Left" action="Click">
260 <action name="Unshade"/>
262 <mousebind button="A-Left" action="Drag">
263 <action name="Move"/>
266 <mousebind button="A-Right" action="Press">
267 <action name="Focus"/>
268 <action name="Raise"/>
269 <action name="Unshade"/>
271 <mousebind button="A-Right" action="Drag">
272 <action name="Resize"/>
275 <mousebind button="A-Middle" action="Press">
276 <action name="Lower"/>
277 <action name="FocusToBottom"/>
278 <action name="Unfocus"/>
281 <mousebind button="A-Up" action="Click">
282 <action name="DesktopPrevious"/>
284 <mousebind button="A-Down" action="Click">
285 <action name="DesktopNext"/>
287 <mousebind button="C-A-Up" action="Click">
288 <action name="DesktopPrevious"/>
290 <mousebind button="C-A-Down" action="Click">
291 <action name="DesktopNext"/>
293 <mousebind button="A-S-Up" action="Click">
294 <action name="SendToDesktopPrevious"/>
296 <mousebind button="A-S-Down" action="Click">
297 <action name="SendToDesktopNext"/>
301 <context name="Titlebar">
302 <mousebind button="Left" action="Press">
303 <action name="Focus"/>
304 <action name="Raise"/>
306 <mousebind button="Left" action="Drag">
307 <action name="Move"/>
309 <mousebind button="Left" action="DoubleClick">
310 <action name="ToggleMaximizeFull"/>
313 <mousebind button="Middle" action="Press">
314 <action name="Lower"/>
315 <action name="FocusToBottom"/>
316 <action name="Unfocus"/>
319 <mousebind button="Up" action="Click">
320 <action name="Shade"/>
321 <action name="FocusToBottom"/>
322 <action name="Unfocus"/>
323 <action name="Lower"/>
325 <mousebind button="Down" action="Click">
326 <action name="Unshade"/>
327 <action name="Raise"/>
330 <mousebind button="Right" action="Press">
331 <action name="Focus"/>
332 <action name="Raise"/>
333 <action name="ShowMenu"><menu>client-menu</menu></action>
338 <mousebind button="Left" action="Press">
339 <action name="Focus"/>
340 <action name="Raise"/>
341 <action name="Unshade"/>
343 <mousebind button="Left" action="Drag">
344 <action name="Resize"><edge>top</edge></action>
348 <context name="Left">
349 <mousebind button="Left" action="Press">
350 <action name="Focus"/>
351 <action name="Raise"/>
353 <mousebind button="Left" action="Drag">
354 <action name="Resize"><edge>left</edge></action>
358 <context name="Right">
359 <mousebind button="Left" action="Press">
360 <action name="Focus"/>
361 <action name="Raise"/>
363 <mousebind button="Left" action="Drag">
364 <action name="Resize"><edge>right</edge></action>
368 <context name="Bottom">
369 <mousebind button="Left" action="Press">
370 <action name="Focus"/>
371 <action name="Raise"/>
373 <mousebind button="Left" action="Drag">
374 <action name="Resize"><edge>bottom</edge></action>
377 <mousebind button="Middle" action="Press">
378 <action name="Lower"/>
379 <action name="FocusToBottom"/>
380 <action name="Unfocus"/>
383 <mousebind button="Right" action="Press">
384 <action name="Focus"/>
385 <action name="Raise"/>
386 <action name="ShowMenu"><menu>client-menu</menu></action>
390 <context name="BLCorner">
391 <mousebind button="Left" action="Press">
392 <action name="Focus"/>
393 <action name="Raise"/>
395 <mousebind button="Left" action="Drag">
396 <action name="Resize"/>
400 <context name="BRCorner">
401 <mousebind button="Left" action="Press">
402 <action name="Focus"/>
403 <action name="Raise"/>
405 <mousebind button="Left" action="Drag">
406 <action name="Resize"/>
410 <context name="TLCorner">
411 <mousebind button="Left" action="Press">
412 <action name="Focus"/>
413 <action name="Raise"/>
414 <action name="Unshade"/>
416 <mousebind button="Left" action="Drag">
417 <action name="Resize"/>
421 <context name="TRCorner">
422 <mousebind button="Left" action="Press">
423 <action name="Focus"/>
424 <action name="Raise"/>
425 <action name="Unshade"/>
427 <mousebind button="Left" action="Drag">
428 <action name="Resize"/>
432 <context name="Client">
433 <mousebind button="Left" action="Press">
434 <action name="Focus"/>
435 <action name="Raise"/>
437 <mousebind button="Middle" action="Press">
438 <action name="Focus"/>
439 <action name="Raise"/>
441 <mousebind button="Right" action="Press">
442 <action name="Focus"/>
443 <action name="Raise"/>
447 <context name="Icon">
448 <mousebind button="Left" action="Press">
449 <action name="Focus"/>
450 <action name="Raise"/>
451 <action name="Unshade"/>
452 <action name="ShowMenu"><menu>client-menu</menu></action>
454 <mousebind button="Right" action="Press">
455 <action name="Focus"/>
456 <action name="Raise"/>
457 <action name="ShowMenu"><menu>client-menu</menu></action>
461 <context name="AllDesktops">
462 <mousebind button="Left" action="Press">
463 <action name="Focus"/>
464 <action name="Raise"/>
465 <action name="Unshade"/>
467 <mousebind button="Left" action="Click">
468 <action name="ToggleOmnipresent"/>
472 <context name="Shade">
473 <mousebind button="Left" action="Press">
474 <action name="Focus"/>
475 <action name="Raise"/>
477 <mousebind button="Left" action="Click">
478 <action name="ToggleShade"/>
482 <context name="Iconify">
483 <mousebind button="Left" action="Press">
484 <action name="Focus"/>
485 <action name="Raise"/>
487 <mousebind button="Left" action="Click">
488 <action name="Iconify"/>
492 <context name="Maximize">
493 <mousebind button="Left" action="Press">
494 <action name="Focus"/>
495 <action name="Raise"/>
496 <action name="Unshade"/>
498 <mousebind button="Middle" action="Press">
499 <action name="Focus"/>
500 <action name="Raise"/>
501 <action name="Unshade"/>
503 <mousebind button="Right" action="Press">
504 <action name="Focus"/>
505 <action name="Raise"/>
506 <action name="Unshade"/>
508 <mousebind button="Left" action="Click">
509 <action name="ToggleMaximizeFull"/>
511 <mousebind button="Middle" action="Click">
512 <action name="ToggleMaximizeVert"/>
514 <mousebind button="Right" action="Click">
515 <action name="ToggleMaximizeHorz"/>
519 <context name="Close">
520 <mousebind button="Left" action="Press">
521 <action name="Focus"/>
522 <action name="Raise"/>
523 <action name="Unshade"/>
525 <mousebind button="Left" action="Click">
526 <action name="Close"/>
530 <context name="Desktop">
531 <mousebind button="Up" action="Click">
532 <action name="DesktopPrevious"/>
534 <mousebind button="Down" action="Click">
535 <action name="DesktopNext"/>
538 <mousebind button="A-Up" action="Click">
539 <action name="DesktopPrevious"/>
541 <mousebind button="A-Down" action="Click">
542 <action name="DesktopNext"/>
544 <mousebind button="C-A-Up" action="Click">
545 <action name="DesktopPrevious"/>
547 <mousebind button="C-A-Down" action="Click">
548 <action name="DesktopNext"/>
551 <mousebind button="Left" action="Press">
552 <action name="Focus"/>
553 <action name="Raise"/>
557 <context name="Root">
559 <mousebind button="Middle" action="Press">
560 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
562 <mousebind button="Right" action="Press">
563 <action name="ShowMenu"><menu>root-menu</menu></action>
567 <context name="MoveResize">
568 <mousebind button="Up" action="Click">
569 <action name="DesktopPrevious"/>
571 <mousebind button="Down" action="Click">
572 <action name="DesktopNext"/>
574 <mousebind button="A-Up" action="Click">
575 <action name="DesktopPrevious"/>
577 <mousebind button="A-Down" action="Click">
578 <action name="DesktopNext"/>
584 <!-- You can specify more than one menu file in here and they are all loaded,
585 just don't make menu ids clash or, well, it'll be kind of pointless -->
587 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
588 <file>menu.xml</file>
589 <hideDelay>200</hideDelay>
591 <submenuShowDelay>100</submenuShowDelay>
592 <applicationIcons>yes</applicationIcons>
597 # this is an example with comments through out. use these to make your
598 # own rules, but without the comments of course.
600 <application name="first element of window's WM_CLASS property (see xprop)"
601 class="second element of window's WM_CLASS property (see xprop)"
602 role="the window's WM_WINDOW_ROLE property (see xprop)">
603 # the name or the class can be set, or both. this is used to match
604 # windows when they appear. role can optionally be set as well, to
605 # further restrict your matches.
607 # the name, class, and role use simple wildcard matching such as those
608 # used by a shell. you can use * to match any characters and ? to match
609 # any single character.
611 # when multiple rules match a window, they will all be applied, in the
612 # order that they appear in this list
615 # each element can be left out or set to 'default' to specify to not
616 # change that attribute of the window
619 # enable or disable window decorations
622 # make the window shaded when it appears, or not
625 # the position is only used if both an x and y coordinate are provided
626 # (and not set to 'default')
628 # a number like 50, or 'center' to center on screen. use a negative number
629 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
630 # right edge (or bottom).
633 # specifies the monitor in a xinerama setup.
634 # 1 is the first head, or 'mouse' for wherever the mouse is
638 # if the window should try be given focus when it appears. if this is set
639 # to yes it doesn't guarantee the window will be given focus. some
640 # restrictions may apply, but Openbox will try to
643 # 1 is the first desktop, 'all' for all desktops
645 <layer>normal</layer>
646 # 'above', 'normal', or 'below'
649 # make the window iconified when it appears, or not
651 <skip_pager>no</skip_pager>
652 # asks to not be shown in pagers
654 <skip_taskbar>no</skip_taskbar>
655 # asks to not be shown in taskbars. window cycling actions will also
656 # skip past such windows
658 <fullscreen>yes</fullscreen>
659 # make the window in fullscreen mode when it appears
661 <maximized>true</maximized>
662 # 'Horizontal', 'Vertical' or boolean (yes/no)