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"
7 xmlns:xi="http://www.w3.org/2001/XInclude">
10 <strength>10</strength>
11 <screen_edge_strength>20</screen_edge_strength>
15 <focusNew>yes</focusNew>
16 <!-- always try to focus new windows when they appear. other rules do
18 <followMouse>no</followMouse>
19 <!-- move focus to a window when you move the mouse into it -->
20 <focusLast>yes</focusLast>
21 <!-- focus the last used window when changing desktops, instead of the one
22 under the mouse pointer. when followMouse is enabled -->
23 <underMouse>no</underMouse>
24 <!-- move focus under the mouse, even when the mouse is not moving -->
25 <focusDelay>200</focusDelay>
26 <!-- when followMouse is enabled, the mouse must be inside the window for
27 this many milliseconds (1000 = 1 sec) before moving focus to it -->
28 <raiseOnFocus>no</raiseOnFocus>
29 <!-- when followMouse is enabled, and a window is given focus by moving the
30 mouse into it, also raise the window -->
34 <policy>Smart</policy>
35 <!-- 'Smart' or 'UnderMouse' -->
37 <!-- whether to place windows in the center of the free area found or
38 the top left corner -->
39 <monitor>Primary</monitor>
40 <!-- with Smart placement on a multi-monitor system, try to place new windows
41 on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
42 the active window is, 'Primary' - only on the primary monitor -->
43 <primaryMonitor>1</primaryMonitor>
44 <!-- The monitor where Openbox should place popup dialogs such as the
45 focus cycling popup, or the desktop switch popup. It can be an index
46 from 1, specifying a particular monitor. Or it can be one of the
47 following: 'Mouse' - where the mouse is, or
48 'Active' - where the active window is -->
52 <name>Clearlooks</name>
53 <titleLayout>NLIMC</titleLayout>
55 available characters are NDSLIMC, each can occur at most once.
57 L: window label (AKA title).
61 S: shade (roll up/down)
62 D: omnipresent (on all desktops).
64 <keepBorder>yes</keepBorder>
65 <animateIconify>yes</animateIconify>
66 <font place="ActiveWindow">
69 <!-- font size in points -->
71 <!-- 'bold' or 'normal' -->
73 <!-- 'italic' or 'normal' -->
75 <font place="InactiveWindow">
78 <!-- font size in points -->
80 <!-- 'bold' or 'normal' -->
82 <!-- 'italic' or 'normal' -->
84 <font place="MenuHeader">
87 <!-- font size in points -->
88 <weight>normal</weight>
89 <!-- 'bold' or 'normal' -->
91 <!-- 'italic' or 'normal' -->
93 <font place="MenuItem">
96 <!-- font size in points -->
97 <weight>normal</weight>
98 <!-- 'bold' or 'normal' -->
100 <!-- 'italic' or 'normal' -->
102 <font place="ActiveOnScreenDisplay">
105 <!-- font size in points -->
106 <weight>bold</weight>
107 <!-- 'bold' or 'normal' -->
108 <slant>normal</slant>
109 <!-- 'italic' or 'normal' -->
111 <font place="InactiveOnScreenDisplay">
114 <!-- font size in points -->
115 <weight>bold</weight>
116 <!-- 'bold' or 'normal' -->
117 <slant>normal</slant>
118 <!-- 'italic' or 'normal' -->
123 <!-- this stuff is only used at startup, pagers allow you to change them
126 these are default values to use when other ones are not already set
127 by other applications, or saved in your session
129 use obconf if you want to change these without having to log out
132 <firstdesk>1</firstdesk>
134 <!-- set names up here if you want to, like this:
135 <name>desktop 1</name>
136 <name>desktop 2</name>
139 <popupTime>875</popupTime>
140 <!-- The number of milliseconds to show the popup for when switching
141 desktops. Set this to 0 to disable the popup. -->
145 <drawContents>yes</drawContents>
146 <popupShow>Nonpixel</popupShow>
147 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
148 <popupPosition>Center</popupPosition>
149 <!-- 'Center', 'Top', or 'Fixed' -->
151 <!-- these are used if popupPosition is set to 'Fixed' -->
154 <!-- positive number for distance from left edge, negative number for
155 distance from right edge, or 'Center' -->
157 <!-- positive number for distance from top edge, negative number for
158 distance from bottom edge, or 'Center' -->
159 </popupFixedPosition>
162 <!-- You can reserve a portion of your screen where windows will not cover when
163 they are maximized, or when they are initially placed.
164 Many programs reserve space automatically, but you can use this in other
174 <position>TopLeft</position>
175 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
176 <floatingX>0</floatingX>
177 <floatingY>0</floatingY>
178 <noStrut>no</noStrut>
179 <stacking>Above</stacking>
180 <!-- 'Above', 'Normal', or 'Below' -->
181 <direction>Vertical</direction>
182 <!-- 'Vertical' or 'Horizontal' -->
183 <autoHide>no</autoHide>
184 <hideDelay>300</hideDelay>
185 <!-- in milliseconds (1000 = 1 second) -->
186 <showDelay>300</showDelay>
187 <!-- in milliseconds (1000 = 1 second) -->
188 <moveButton>Middle</moveButton>
189 <!-- 'Left', 'Middle', 'Right' -->
193 <chainQuitKey>C-g</chainQuitKey>
195 <!-- Keybindings for desktop switching -->
196 <keybind key="C-A-Left">
197 <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
199 <keybind key="C-A-Right">
200 <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
202 <keybind key="C-A-Up">
203 <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
205 <keybind key="C-A-Down">
206 <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
208 <keybind key="S-A-Left">
209 <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
211 <keybind key="S-A-Right">
212 <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
214 <keybind key="S-A-Up">
215 <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
217 <keybind key="S-A-Down">
218 <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
221 <action name="GoToDesktop"><to>1</to></action>
224 <action name="GoToDesktop"><to>2</to></action>
227 <action name="GoToDesktop"><to>3</to></action>
230 <action name="GoToDesktop"><to>4</to></action>
233 <action name="ToggleShowDesktop"/>
236 <!-- Keybindings for windows -->
238 <action name="Close"/>
240 <keybind key="A-Escape">
241 <action name="Lower"/>
242 <action name="FocusToBottom"/>
243 <action name="Unfocus"/>
245 <keybind key="A-space">
246 <action name="ShowMenu"><menu>client-menu</menu></action>
249 <!-- Keybindings for window switching -->
250 <keybind key="A-Tab">
251 <action name="NextWindow">
253 <action name="Focus"/>
254 <action name="Raise"/>
255 <action name="Unshade"/>
259 <keybind key="A-S-Tab">
260 <action name="PreviousWindow">
262 <action name="Focus"/>
263 <action name="Raise"/>
264 <action name="Unshade"/>
268 <keybind key="C-A-Tab">
269 <action name="NextWindow">
270 <panels>yes</panels><desktop>yes</desktop>
272 <action name="Focus"/>
273 <action name="Raise"/>
274 <action name="Unshade"/>
279 <!-- Keybindings for window switching with the arrow keys -->
280 <keybind key="W-S-Right">
281 <action name="DirectionalCycleWindows">
282 <direction>right</direction>
285 <keybind key="W-S-Left">
286 <action name="DirectionalCycleWindows">
287 <direction>left</direction>
290 <keybind key="W-S-Up">
291 <action name="DirectionalCycleWindows">
292 <direction>up</direction>
295 <keybind key="W-S-Down">
296 <action name="DirectionalCycleWindows">
297 <direction>down</direction>
301 <!-- Keybindings for running applications -->
303 <action name="Execute">
305 <enabled>true</enabled>
306 <name>Konqueror</name>
308 <command>kfmclient openProfile filemanagement</command>
314 <dragThreshold>1</dragThreshold>
315 <!-- number of pixels the mouse must move before a drag begins -->
316 <doubleClickTime>500</doubleClickTime>
317 <!-- in milliseconds (1000 = 1 second) -->
318 <screenEdgeWarpTime>400</screenEdgeWarpTime>
319 <!-- Time before changing desktops when the pointer touches the edge of the
320 screen while moving a window, in milliseconds (1000 = 1 second).
321 Set this to 0 to disable warping -->
322 <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
323 <!-- Set this to TRUE to move the mouse pointer across the desktop when
324 switching due to hitting the edge of the screen -->
326 <context name="Frame">
327 <mousebind button="A-Left" action="Press">
328 <action name="Focus"/>
329 <action name="Raise"/>
331 <mousebind button="A-Left" action="Click">
332 <action name="Unshade"/>
334 <mousebind button="A-Left" action="Drag">
335 <action name="Move"/>
338 <mousebind button="A-Right" action="Press">
339 <action name="Focus"/>
340 <action name="Raise"/>
341 <action name="Unshade"/>
343 <mousebind button="A-Right" action="Drag">
344 <action name="Resize"/>
347 <mousebind button="A-Middle" action="Press">
348 <action name="Lower"/>
349 <action name="FocusToBottom"/>
350 <action name="Unfocus"/>
353 <mousebind button="A-Up" action="Click">
354 <action name="GoToDesktop"><to>previous</to></action>
356 <mousebind button="A-Down" action="Click">
357 <action name="GoToDesktop"><to>next</to></action>
359 <mousebind button="C-A-Up" action="Click">
360 <action name="GoToDesktop"><to>previous</to></action>
362 <mousebind button="C-A-Down" action="Click">
363 <action name="GoToDesktop"><to>next</to></action>
365 <mousebind button="A-S-Up" action="Click">
366 <action name="SendToDesktop"><to>previous</to></action>
368 <mousebind button="A-S-Down" action="Click">
369 <action name="SendToDesktop"><to>next</to></action>
373 <context name="Titlebar">
374 <mousebind button="Left" action="Drag">
375 <action name="Move"/>
377 <mousebind button="Left" action="DoubleClick">
378 <action name="ToggleMaximize"/>
381 <mousebind button="Up" action="Click">
385 <action name="Shade"/>
386 <action name="FocusToBottom"/>
387 <action name="Unfocus"/>
388 <action name="Lower"/>
392 <mousebind button="Down" action="Click">
396 <action name="Unshade"/>
397 <action name="Raise"/>
403 <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
404 <mousebind button="Left" action="Press">
405 <action name="Focus"/>
406 <action name="Raise"/>
407 <action name="Unshade"/>
410 <mousebind button="Middle" action="Press">
411 <action name="Lower"/>
412 <action name="FocusToBottom"/>
413 <action name="Unfocus"/>
416 <mousebind button="Right" action="Press">
417 <action name="Focus"/>
418 <action name="Raise"/>
419 <action name="ShowMenu"><menu>client-menu</menu></action>
424 <mousebind button="Left" action="Drag">
425 <action name="Resize"><edge>top</edge></action>
429 <context name="Left">
430 <mousebind button="Left" action="Drag">
431 <action name="Resize"><edge>left</edge></action>
435 <context name="Right">
436 <mousebind button="Left" action="Drag">
437 <action name="Resize"><edge>right</edge></action>
441 <context name="Bottom">
442 <mousebind button="Left" action="Drag">
443 <action name="Resize"><edge>bottom</edge></action>
446 <mousebind button="Right" action="Press">
447 <action name="Focus"/>
448 <action name="Raise"/>
449 <action name="ShowMenu"><menu>client-menu</menu></action>
453 <context name="TRCorner BRCorner TLCorner BLCorner">
454 <mousebind button="Left" action="Press">
455 <action name="Focus"/>
456 <action name="Raise"/>
457 <action name="Unshade"/>
459 <mousebind button="Left" action="Drag">
460 <action name="Resize"/>
464 <context name="Client">
465 <mousebind button="Left" action="Press">
466 <action name="Focus"/>
467 <action name="Raise"/>
469 <mousebind button="Middle" action="Press">
470 <action name="Focus"/>
471 <action name="Raise"/>
473 <mousebind button="Right" action="Press">
474 <action name="Focus"/>
475 <action name="Raise"/>
479 <context name="Icon">
480 <mousebind button="Left" action="Press">
481 <action name="Focus"/>
482 <action name="Raise"/>
483 <action name="Unshade"/>
484 <action name="ShowMenu"><menu>client-menu</menu></action>
486 <mousebind button="Right" action="Press">
487 <action name="Focus"/>
488 <action name="Raise"/>
489 <action name="ShowMenu"><menu>client-menu</menu></action>
493 <context name="AllDesktops">
494 <mousebind button="Left" action="Press">
495 <action name="Focus"/>
496 <action name="Raise"/>
497 <action name="Unshade"/>
499 <mousebind button="Left" action="Click">
500 <action name="ToggleOmnipresent"/>
504 <context name="Shade">
505 <mousebind button="Left" action="Press">
506 <action name="Focus"/>
507 <action name="Raise"/>
509 <mousebind button="Left" action="Click">
510 <action name="ToggleShade"/>
514 <context name="Iconify">
515 <mousebind button="Left" action="Press">
516 <action name="Focus"/>
517 <action name="Raise"/>
519 <mousebind button="Left" action="Click">
520 <action name="Iconify"/>
524 <context name="Maximize">
525 <mousebind button="Left" action="Press">
526 <action name="Focus"/>
527 <action name="Raise"/>
528 <action name="Unshade"/>
530 <mousebind button="Middle" action="Press">
531 <action name="Focus"/>
532 <action name="Raise"/>
533 <action name="Unshade"/>
535 <mousebind button="Right" action="Press">
536 <action name="Focus"/>
537 <action name="Raise"/>
538 <action name="Unshade"/>
540 <mousebind button="Left" action="Click">
541 <action name="ToggleMaximize"/>
543 <mousebind button="Middle" action="Click">
544 <action name="ToggleMaximize"><direction>vertical</direction></action>
546 <mousebind button="Right" action="Click">
547 <action name="ToggleMaximize"><direction>horizontal</direction></action>
551 <context name="Close">
552 <mousebind button="Left" action="Press">
553 <action name="Focus"/>
554 <action name="Raise"/>
555 <action name="Unshade"/>
557 <mousebind button="Left" action="Click">
558 <action name="Close"/>
562 <context name="Desktop">
563 <mousebind button="Up" action="Click">
564 <action name="GoToDesktop"><to>previous</to></action>
566 <mousebind button="Down" action="Click">
567 <action name="GoToDesktop"><to>next</to></action>
570 <mousebind button="A-Up" action="Click">
571 <action name="GoToDesktop"><to>previous</to></action>
573 <mousebind button="A-Down" action="Click">
574 <action name="GoToDesktop"><to>next</to></action>
576 <mousebind button="C-A-Up" action="Click">
577 <action name="GoToDesktop"><to>previous</to></action>
579 <mousebind button="C-A-Down" action="Click">
580 <action name="GoToDesktop"><to>next</to></action>
583 <mousebind button="Left" action="Press">
584 <action name="Focus"/>
585 <action name="Raise"/>
587 <mousebind button="Right" action="Press">
588 <action name="Focus"/>
589 <action name="Raise"/>
593 <context name="Root">
595 <mousebind button="Middle" action="Press">
596 <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
598 <mousebind button="Right" action="Press">
599 <action name="ShowMenu"><menu>root-menu</menu></action>
603 <context name="MoveResize">
604 <mousebind button="Up" action="Click">
605 <action name="GoToDesktop"><to>previous</to></action>
607 <mousebind button="Down" action="Click">
608 <action name="GoToDesktop"><to>next</to></action>
610 <mousebind button="A-Up" action="Click">
611 <action name="GoToDesktop"><to>previous</to></action>
613 <mousebind button="A-Down" action="Click">
614 <action name="GoToDesktop"><to>next</to></action>
620 <!-- You can specify more than one menu file in here and they are all loaded,
621 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 -->
629 <!-- center submenus vertically about the parent entry -->
630 <submenuShowDelay>100</submenuShowDelay>
631 <!-- time to delay before showing a submenu after hovering over the parent
633 if this is a negative value, then the delay is infinite and the
634 submenu will not be shown until it is clicked on -->
635 <submenuHideDelay>400</submenuHideDelay>
636 <!-- time to delay before hiding a submenu when selecting another
637 entry in parent menu -->
638 if this is a negative value, then the delay is infinite and the
639 submenu will not be hidden until a different submenu is opened -->
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 -->
648 # this is an example with comments through out. use these to make your
649 # own rules, but without the comments of course.
650 # you may use one or more of the name/class/role/title/type rules to specify
653 <application name="the window's _OB_APP_NAME property (see obxprop)"
654 class="the window's _OB_APP_CLASS property (see obxprop)"
655 role="the window's _OB_APP_ROLE property (see obxprop)"
656 title="the window's _OB_APP_TITLE property (see obxprop)"
657 type="the window's _OB_APP_TYPE property (see obxprob)..
658 (if unspecified, then it is 'dialog' for child windows)">
659 # you may set only one of name/class/role/title/type, or you may use more
660 # than one together to restrict your matches.
662 # the name, class, role, and title use simple wildcard matching such as those
663 # used by a shell. you can use * to match any characters and ? to match
664 # any single character.
666 # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
669 # when multiple rules match a window, they will all be applied, in the
670 # order that they appear in this list
673 # each rule element can be left out or set to 'default' to specify to not
674 # change that attribute of the window
677 # enable or disable window decorations
680 # make the window shaded when it appears, or not
682 <position force="no">
683 # the position is only used if both an x and y coordinate are provided
684 # (and not set to 'default')
685 # when force is "yes", then the window will be placed here even if it
686 # says you want it placed elsewhere. this is to override buggy
687 # applications who refuse to behave
689 # a number like 50, or 'center' to center on screen. use a negative number
690 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
691 # right edge (or bottom).
694 # specifies the monitor in a xinerama setup.
695 # 1 is the first head, or 'mouse' for wherever the mouse is
699 # if the window should try be given focus when it appears. if this is set
700 # to yes it doesn't guarantee the window will be given focus. some
701 # restrictions may apply, but Openbox will try to
704 # 1 is the first desktop, 'all' for all desktops
706 <layer>normal</layer>
707 # 'above', 'normal', or 'below'
710 # make the window iconified when it appears, or not
712 <skip_pager>no</skip_pager>
713 # asks to not be shown in pagers
715 <skip_taskbar>no</skip_taskbar>
716 # asks to not be shown in taskbars. window cycling actions will also
717 # skip past such windows
719 <fullscreen>yes</fullscreen>
720 # make the window in fullscreen mode when it appears
722 <maximized>true</maximized>
723 # 'Horizontal', 'Vertical' or boolean (yes/no)