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 -->
38 <monitor>Active
</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 <primaryMonitor>1</primaryMonitor>
43 <!-- The monitor where Openbox should place popup dialogs such as the
44 focus cycling popup, or the desktop switch popup. It can be an index
45 from 1, specifying a particular monitor. Or it can be one of the
46 following: 'Mouse' - where the mouse is, or
47 'Active' - where the active window is -->
51 <name>Clearlooks
</name>
52 <titleLayout>NLIMC
</titleLayout>
54 available characters are NDSLIMC, each can occur at most once.
56 L: window label (AKA title).
60 S: shade (roll up/down)
61 D: omnipresent (on all desktops).
63 <keepBorder>yes
</keepBorder>
64 <animateIconify>yes
</animateIconify>
65 <font place=
"ActiveWindow">
68 <!-- font size in points -->
70 <!-- 'bold' or 'normal' -->
72 <!-- 'italic' or 'normal' -->
74 <font place=
"InactiveWindow">
77 <!-- font size in points -->
79 <!-- 'bold' or 'normal' -->
81 <!-- 'italic' or 'normal' -->
83 <font place=
"MenuHeader">
86 <!-- font size in points -->
87 <weight>normal
</weight>
88 <!-- 'bold' or 'normal' -->
90 <!-- 'italic' or 'normal' -->
92 <font place=
"MenuItem">
95 <!-- font size in points -->
96 <weight>normal
</weight>
97 <!-- 'bold' or 'normal' -->
99 <!-- 'italic' or 'normal' -->
101 <font place=
"OnScreenDisplay">
104 <!-- font size in points -->
105 <weight>bold
</weight>
106 <!-- 'bold' or 'normal' -->
107 <slant>normal
</slant>
108 <!-- 'italic' or 'normal' -->
113 <!-- this stuff is only used at startup, pagers allow you to change them
116 these are default values to use when other ones are not already set
117 by other applications, or saved in your session
119 use obconf if you want to change these without having to log out
122 <firstdesk>1</firstdesk>
124 <!-- set names up here if you want to, like this:
125 <name>desktop 1</name>
126 <name>desktop 2</name>
129 <popupTime>875</popupTime>
130 <!-- The number of milliseconds to show the popup for when switching
131 desktops. Set this to 0 to disable the popup. -->
135 <drawContents>yes
</drawContents>
136 <popupShow>Nonpixel
</popupShow>
137 <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
138 <popupPosition>Center
</popupPosition>
139 <!-- 'Center', 'Top', or 'Fixed' -->
141 <!-- these are used if popupPosition is set to 'Fixed' -->
144 <!-- positive number for distance from left edge, negative number for
145 distance from right edge, or 'Center' -->
147 <!-- positive number for distance from top edge, negative number for
148 distance from bottom edge, or 'Center' -->
149 </popupFixedPosition>
152 <!-- You can reserve a portion of your screen where windows will not cover when
153 they are maximized, or when they are initially placed.
154 Many programs reserve space automatically, but you can use this in other
164 <position>TopLeft
</position>
165 <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
166 <floatingX>0</floatingX>
167 <floatingY>0</floatingY>
168 <noStrut>no
</noStrut>
169 <stacking>Above
</stacking>
170 <!-- 'Above', 'Normal', or 'Below' -->
171 <direction>Vertical
</direction>
172 <!-- 'Vertical' or 'Horizontal' -->
173 <autoHide>no
</autoHide>
174 <hideDelay>300</hideDelay>
175 <!-- in milliseconds (1000 = 1 second) -->
176 <showDelay>300</showDelay>
177 <!-- in milliseconds (1000 = 1 second) -->
178 <moveButton>Middle
</moveButton>
179 <!-- 'Left', 'Middle', 'Right' -->
183 <chainQuitKey>C-g
</chainQuitKey>
185 <!-- Keybindings for desktop switching -->
186 <keybind key=
"C-A-Left">
187 <action name=
"GoToDesktop"><to>left
</to><wrap>no
</wrap></action>
189 <keybind key=
"C-A-Right">
190 <action name=
"GoToDesktop"><to>right
</to><wrap>no
</wrap></action>
192 <keybind key=
"C-A-Up">
193 <action name=
"GoToDesktop"><to>up
</to><wrap>no
</wrap></action>
195 <keybind key=
"C-A-Down">
196 <action name=
"GoToDesktop"><to>down
</to><wrap>no
</wrap></action>
198 <keybind key=
"S-A-Left">
199 <action name=
"SendToDesktop"><to>left
</to><wrap>no
</wrap></action>
201 <keybind key=
"S-A-Right">
202 <action name=
"SendToDesktop"><to>right
</to><wrap>no
</wrap></action>
204 <keybind key=
"S-A-Up">
205 <action name=
"SendToDesktop"><to>up
</to><wrap>no
</wrap></action>
207 <keybind key=
"S-A-Down">
208 <action name=
"SendToDesktop"><to>down
</to><wrap>no
</wrap></action>
211 <action name=
"GoToDesktop"><to>1</to></action>
214 <action name=
"GoToDesktop"><to>2</to></action>
217 <action name=
"GoToDesktop"><to>3</to></action>
220 <action name=
"GoToDesktop"><to>4</to></action>
223 <action name=
"ToggleShowDesktop"/>
226 <!-- Keybindings for windows -->
228 <action name=
"Close"/>
230 <keybind key=
"A-Escape">
231 <action name=
"Lower"/>
232 <action name=
"FocusToBottom"/>
233 <action name=
"Unfocus"/>
235 <keybind key=
"A-space">
236 <action name=
"ShowMenu"><menu>client-menu
</menu></action>
239 <!-- Keybindings for window switching -->
240 <keybind key=
"A-Tab">
241 <action name=
"NextWindow">
243 <action name=
"Focus"/>
244 <action name=
"Raise"/>
245 <action name=
"Unshade"/>
249 <keybind key=
"A-S-Tab">
250 <action name=
"PreviousWindow">
252 <action name=
"Focus"/>
253 <action name=
"Raise"/>
254 <action name=
"Unshade"/>
258 <keybind key=
"C-A-Tab">
259 <action name=
"NextWindow">
260 <panels>yes
</panels><desktop>yes
</desktop>
262 <action name=
"Focus"/>
263 <action name=
"Raise"/>
264 <action name=
"Unshade"/>
269 <!-- Keybindings for running applications -->
271 <action name=
"Execute">
273 <enabled>true
</enabled>
274 <name>Konqueror
</name>
276 <command>kfmclient openProfile filemanagement
</command>
282 <dragThreshold>8</dragThreshold>
283 <!-- number of pixels the mouse must move before a drag begins -->
284 <doubleClickTime>200</doubleClickTime>
285 <!-- in milliseconds (1000 = 1 second) -->
286 <screenEdgeWarpTime>400</screenEdgeWarpTime>
287 <!-- Time before changing desktops when the pointer touches the edge of the
288 screen while moving a window, in milliseconds (1000 = 1 second).
289 Set this to 0 to disable warping -->
291 <context name=
"Frame">
292 <mousebind button=
"A-Left" action=
"Press">
293 <action name=
"Focus"/>
294 <action name=
"Raise"/>
296 <mousebind button=
"A-Left" action=
"Click">
297 <action name=
"Unshade"/>
299 <mousebind button=
"A-Left" action=
"Drag">
300 <action name=
"Move"/>
303 <mousebind button=
"A-Right" action=
"Press">
304 <action name=
"Focus"/>
305 <action name=
"Raise"/>
306 <action name=
"Unshade"/>
308 <mousebind button=
"A-Right" action=
"Drag">
309 <action name=
"Resize"/>
312 <mousebind button=
"A-Middle" action=
"Press">
313 <action name=
"Lower"/>
314 <action name=
"FocusToBottom"/>
315 <action name=
"Unfocus"/>
318 <mousebind button=
"A-Up" action=
"Click">
319 <action name=
"GoToDesktop"><to>previous
</to></action>
321 <mousebind button=
"A-Down" action=
"Click">
322 <action name=
"GoToDesktop"><to>next
</to></action>
324 <mousebind button=
"C-A-Up" action=
"Click">
325 <action name=
"GoToDesktop"><to>previous
</to></action>
327 <mousebind button=
"C-A-Down" action=
"Click">
328 <action name=
"GoToDesktop"><to>next
</to></action>
330 <mousebind button=
"A-S-Up" action=
"Click">
331 <action name=
"SendToDesktop"><to>previous
</to></action>
333 <mousebind button=
"A-S-Down" action=
"Click">
334 <action name=
"SendToDesktop"><to>next
</to></action>
338 <context name=
"Titlebar">
339 <mousebind button=
"Left" action=
"Press">
340 <action name=
"Focus"/>
341 <action name=
"Raise"/>
343 <mousebind button=
"Left" action=
"Drag">
344 <action name=
"Move"/>
346 <mousebind button=
"Left" action=
"DoubleClick">
347 <action name=
"ToggleMaximize"/>
350 <mousebind button=
"Middle" action=
"Press">
351 <action name=
"Lower"/>
352 <action name=
"FocusToBottom"/>
353 <action name=
"Unfocus"/>
356 <mousebind button=
"Up" action=
"Click">
357 <action name=
"Shade"/>
358 <action name=
"FocusToBottom"/>
359 <action name=
"Unfocus"/>
360 <action name=
"Lower"/>
362 <mousebind button=
"Down" action=
"Click">
363 <action name=
"Unshade"/>
364 <action name=
"Raise"/>
367 <mousebind button=
"Right" action=
"Press">
368 <action name=
"Focus"/>
369 <action name=
"Raise"/>
370 <action name=
"ShowMenu"><menu>client-menu
</menu></action>
375 <mousebind button=
"Left" action=
"Press">
376 <action name=
"Focus"/>
377 <action name=
"Raise"/>
378 <action name=
"Unshade"/>
380 <mousebind button=
"Left" action=
"Drag">
381 <action name=
"Resize"><edge>top
</edge></action>
385 <context name=
"Left">
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>left
</edge></action>
395 <context name=
"Right">
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>right
</edge></action>
405 <context name=
"Bottom">
406 <mousebind button=
"Left" action=
"Press">
407 <action name=
"Focus"/>
408 <action name=
"Raise"/>
410 <mousebind button=
"Left" action=
"Drag">
411 <action name=
"Resize"><edge>bottom
</edge></action>
414 <mousebind button=
"Middle" action=
"Press">
415 <action name=
"Lower"/>
416 <action name=
"FocusToBottom"/>
417 <action name=
"Unfocus"/>
420 <mousebind button=
"Right" action=
"Press">
421 <action name=
"Focus"/>
422 <action name=
"Raise"/>
423 <action name=
"ShowMenu"><menu>client-menu
</menu></action>
427 <context name=
"BLCorner">
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>bottomleft
</edge></action>
437 <context name=
"BRCorner">
438 <mousebind button=
"Left" action=
"Press">
439 <action name=
"Focus"/>
440 <action name=
"Raise"/>
442 <mousebind button=
"Left" action=
"Drag">
443 <action name=
"Resize"><edge>bottomright
</edge></action>
447 <context name=
"TLCorner">
448 <mousebind button=
"Left" action=
"Press">
449 <action name=
"Focus"/>
450 <action name=
"Raise"/>
451 <action name=
"Unshade"/>
453 <mousebind button=
"Left" action=
"Drag">
454 <action name=
"Resize"><edge>topleft
</edge></action>
458 <context name=
"TRCorner">
459 <mousebind button=
"Left" action=
"Press">
460 <action name=
"Focus"/>
461 <action name=
"Raise"/>
462 <action name=
"Unshade"/>
464 <mousebind button=
"Left" action=
"Drag">
465 <action name=
"Resize"><edge>topright
</edge></action>
469 <context name=
"Client">
470 <mousebind button=
"Left" action=
"Press">
471 <action name=
"Focus"/>
472 <action name=
"Raise"/>
474 <mousebind button=
"Middle" action=
"Press">
475 <action name=
"Focus"/>
476 <action name=
"Raise"/>
478 <mousebind button=
"Right" action=
"Press">
479 <action name=
"Focus"/>
480 <action name=
"Raise"/>
484 <context name=
"Icon">
485 <mousebind button=
"Left" action=
"Press">
486 <action name=
"Focus"/>
487 <action name=
"Raise"/>
488 <action name=
"Unshade"/>
489 <action name=
"ShowMenu"><menu>client-menu
</menu></action>
491 <mousebind button=
"Right" action=
"Press">
492 <action name=
"Focus"/>
493 <action name=
"Raise"/>
494 <action name=
"ShowMenu"><menu>client-menu
</menu></action>
498 <context name=
"AllDesktops">
499 <mousebind button=
"Left" action=
"Press">
500 <action name=
"Focus"/>
501 <action name=
"Raise"/>
502 <action name=
"Unshade"/>
504 <mousebind button=
"Left" action=
"Click">
505 <action name=
"ToggleOmnipresent"/>
509 <context name=
"Shade">
510 <mousebind button=
"Left" action=
"Press">
511 <action name=
"Focus"/>
512 <action name=
"Raise"/>
514 <mousebind button=
"Left" action=
"Click">
515 <action name=
"ToggleShade"/>
519 <context name=
"Iconify">
520 <mousebind button=
"Left" action=
"Press">
521 <action name=
"Focus"/>
522 <action name=
"Raise"/>
524 <mousebind button=
"Left" action=
"Click">
525 <action name=
"Iconify"/>
529 <context name=
"Maximize">
530 <mousebind button=
"Left" action=
"Press">
531 <action name=
"Focus"/>
532 <action name=
"Raise"/>
533 <action name=
"Unshade"/>
535 <mousebind button=
"Middle" action=
"Press">
536 <action name=
"Focus"/>
537 <action name=
"Raise"/>
538 <action name=
"Unshade"/>
540 <mousebind button=
"Right" action=
"Press">
541 <action name=
"Focus"/>
542 <action name=
"Raise"/>
543 <action name=
"Unshade"/>
545 <mousebind button=
"Left" action=
"Click">
546 <action name=
"ToggleMaximize"/>
548 <mousebind button=
"Middle" action=
"Click">
549 <action name=
"ToggleMaximize"><direction>vertical
</direction></action>
551 <mousebind button=
"Right" action=
"Click">
552 <action name=
"ToggleMaximize"><direction>horizontal
</direction></action>
556 <context name=
"Close">
557 <mousebind button=
"Left" action=
"Press">
558 <action name=
"Focus"/>
559 <action name=
"Raise"/>
560 <action name=
"Unshade"/>
562 <mousebind button=
"Left" action=
"Click">
563 <action name=
"Close"/>
567 <context name=
"Desktop">
568 <mousebind button=
"Up" action=
"Press">
569 <action name=
"GoToDesktop"><to>previous
</to></action>
571 <mousebind button=
"Down" action=
"Press">
572 <action name=
"GoToDesktop"><to>next
</to></action>
575 <mousebind button=
"A-Up" action=
"Press">
576 <action name=
"GoToDesktop"><to>previous
</to></action>
578 <mousebind button=
"A-Down" action=
"Press">
579 <action name=
"GoToDesktop"><to>next
</to></action>
581 <mousebind button=
"C-A-Up" action=
"Press">
582 <action name=
"GoToDesktop"><to>previous
</to></action>
584 <mousebind button=
"C-A-Down" action=
"Press">
585 <action name=
"GoToDesktop"><to>next
</to></action>
588 <mousebind button=
"Left" action=
"Press">
589 <action name=
"Focus"/>
590 <action name=
"Raise"/>
592 <mousebind button=
"Right" action=
"Press">
593 <action name=
"Focus"/>
594 <action name=
"Raise"/>
598 <context name=
"Root">
600 <mousebind button=
"Middle" action=
"Press">
601 <action name=
"ShowMenu"><menu>client-list-combined-menu
</menu></action>
603 <mousebind button=
"Right" action=
"Press">
604 <action name=
"ShowMenu"><menu>root-menu
</menu></action>
608 <context name=
"MoveResize">
609 <mousebind button=
"Up" action=
"Press">
610 <action name=
"GoToDesktop"><to>previous
</to></action>
612 <mousebind button=
"Down" action=
"Press">
613 <action name=
"GoToDesktop"><to>next
</to></action>
615 <mousebind button=
"A-Up" action=
"Press">
616 <action name=
"GoToDesktop"><to>previous
</to></action>
618 <mousebind button=
"A-Down" action=
"Press">
619 <action name=
"GoToDesktop"><to>next
</to></action>
625 <!-- You can specify more than one menu file in here and they are all loaded,
626 just don't make menu ids clash or, well, it'll be kind of pointless -->
628 <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
629 <file>menu.xml
</file>
630 <hideDelay>200</hideDelay>
631 <!-- if a press-release lasts longer than this setting (in milliseconds), the
632 menu is hidden again -->
634 <!-- center submenus vertically about the parent entry -->
635 <submenuShowDelay>100</submenuShowDelay>
636 <!-- this one is easy, time to delay before showing a submenu after hovering
637 over the parent entry -->
638 <applicationIcons>yes
</applicationIcons>
639 <!-- controls if icons appear in the client-list-(combined-)menu -->
640 <manageDesktops>yes
</manageDesktops>
641 <!-- show the manage desktops section in the client-list-(combined-)menu -->
646 # this is an example with comments through out. use these to make your
647 # own rules, but without the comments of course.
649 <application name="the window's _OB_NAME property (see obprop)"
650 class="the window's _OB_CLASS property (see obprop)"
651 role="the window's _OB_ROLE property (see obprop)"
652 type="the window's _NET_WM_WINDOW_TYPE (see obprob)..
653 (if unspecified, then it is 'dialog' for child windows)">
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.
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.
662 # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
665 # when multiple rules match a window, they will all be applied, in the
666 # order that they appear in this list
669 # each element can be left out or set to 'default' to specify to not
670 # change that attribute of the window
673 # enable or disable window decorations
676 # make the window shaded when it appears, or not
678 <position force="no">
679 # the position is only used if both an x and y coordinate are provided
680 # (and not set to 'default')
681 # when force is "yes", then the window will be placed here even if it
682 # says you want it placed elsewhere. this is to override buggy
683 # applications who refuse to behave
685 # a number like 50, or 'center' to center on screen. use a negative number
686 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
687 # right edge (or bottom).
690 # specifies the monitor in a xinerama setup.
691 # 1 is the first head, or 'mouse' for wherever the mouse is
695 # if the window should try be given focus when it appears. if this is set
696 # to yes it doesn't guarantee the window will be given focus. some
697 # restrictions may apply, but Openbox will try to
700 # 1 is the first desktop, 'all' for all desktops
702 <layer>normal</layer>
703 # 'above', 'normal', or 'below'
706 # make the window iconified when it appears, or not
708 <skip_pager>no</skip_pager>
709 # asks to not be shown in pagers
711 <skip_taskbar>no</skip_taskbar>
712 # asks to not be shown in taskbars. window cycling actions will also
713 # skip past such windows
715 <fullscreen>yes</fullscreen>
716 # make the window in fullscreen mode when it appears
718 <maximized>true</maximized>
719 # 'Horizontal', 'Vertical' or boolean (yes/no)