<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
  <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
  </resistance>
  <focus>
<!-- always try to focus new windows when they appear. other rules do
       apply -->
    <focusNew>yes</focusNew>
<!-- move focus to a window when you move the mouse into it -->
    <followMouse>yes</followMouse>
<!-- focus the last used window when changing desktops, instead of the one
       under the mouse pointer. when followMouse is enabled -->
    <focusLast>no</focusLast>
<!-- move focus under the mouse, even when the mouse is not moving -->
    <underMouse>no</underMouse>
<!-- when followMouse is enabled, the mouse must be inside the window for
       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <focusDelay>20</focusDelay>
<!-- when followMouse is enabled, and a window is given focus by moving the
       mouse into it, also raise the window -->
    <raiseOnFocus>no</raiseOnFocus>
  </focus>
  <placement>
    <policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<!-- whether to place windows in the center of the free area found or
       the top left corner -->
    <center>no</center>
  </placement>
  <theme>
    <name>Bear2</name>
<!--
      avaible characters are NDSLIMC, each can occur at most once.
      N: window icon
      L: window label (AKA title).
      I: iconify
      M: maximize
      C: close
      S: shade (roll up/down)
      D: omnipresent (on all desktops).
  -->
    <titleLayout>NLIMC</titleLayout>
    <keepBorder>no</keepBorder>
    <animateIconify>yes</animateIconify>
    <font place="ActiveWindow">
      <name>Bitstream Vera Sans Mono</name>
<!-- font size in points -->
      <size>12</size>
<!-- 'bold' or 'normal' -->
      <weight>Normal</weight>
<!-- 'italic' or 'normal' -->
      <slant>Normal</slant>
    </font>
    <font place="InactiveWindow">
      <name>Bitstream Vera Sans Mono</name>
<!-- font size in points -->
      <size>12</size>
<!-- 'bold' or 'normal' -->
      <weight>Bold</weight>
<!-- 'italic' or 'normal' -->
      <slant>Normal</slant>
    </font>
    <font place="MenuHeader">
      <name>Bitstream Vera Sans Mono</name>
<!-- font size in points -->
      <size>12</size>
<!-- 'bold' or 'normal' -->
      <weight>Normal</weight>
<!-- 'italic' or 'normal' -->
      <slant>Normal</slant>
    </font>
    <font place="MenuItem">
      <name>Bitstream Vera Sans Mono</name>
<!-- font size in points -->
      <size>12</size>
<!-- 'bold' or 'normal' -->
      <weight>Normal</weight>
<!-- 'italic' or 'normal' -->
      <slant>Normal</slant>
    </font>
    <font place="OnScreenDisplay">
      <name>Bitstream Vera Sans Mono</name>
<!-- font size in points -->
      <size>12</size>
<!-- 'bold' or 'normal' -->
      <weight>Bold</weight>
<!-- 'italic' or 'normal' -->
      <slant>Normal</slant>
    </font>
  </theme>
  <desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
       during a session

       these are default values to use when other ones are not already set
       by other applications, or saved in your session

       use obconf if you want to change these without having to log out
       and back in -->
    <number>5</number>
    <firstdesk>1</firstdesk>
    <names>
      <name>console</name>
      <name>www</name>
      <name>code</name>
      <name>music</name>
      <name>misc</name>
    </names>
  </desktops>
  <resize>
    <drawContents>no</drawContents>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupShow>Nonpixel</popupShow>
<!-- 'Center' or 'Top' -->
    <popupPosition>Center</popupPosition>
  </resize>
<!-- You can reserve a portion of your screen where windows will not cover when
     they are maximized, or when they are initially placed.
     Many programs reserve space automatically, but you can use this in other
     cases. -->
  <margins>
    <top>0</top>
    <bottom>0</bottom>
    <left>0</left>
    <right>0</right>
  </margins>
  <dock>
    <position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
  </dock>
  <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
<!-- Command bindings                                                     -->
<!-- ==================================================================== -->
<!-- Lock the screen. Comment out the next tag and uncomment the one  -->
<!-- after it if you would prefer to simply turn on your screensaver. -->
    <keybind key="C-A-Escape">
      <action name="Execute">
        <execute>xscreensaver-command -lock</execute>
      </action>
    </keybind>
<!--
  <keybind key="C-A-Escape">
    <action name="Execute">
      <execute>xscreensaver-command -activate</execute>
    </action>
  </keybind>
  -->
<!-- If you have a laptop that uses an ATI Radeon Mobility graphics card, -->
<!-- uncomment the next tag if you want to be able to activate and        -->
<!-- deactivate the lightwatch script (Gentoo users,                      -->
<!-- "emerge app-laptop/radeontool", Debian users                         -->
<!-- "apt-get install radeontool", everyone else:                         -->
<!-- http://fdd.com/software/radeon/). You will also need to grab my      -->
<!-- sentry script:                                                       -->
<!-- http://www.jmglov.net/unix/scripts/lightwatch-sentry.sh              -->
<!--                                                                      -->
<!-- Turn on / off lightwatch (to blank screen when xscreensaver starts)  -->
<!--
  <keybind key="C-A-Tab">
    <action name="Execute">
      <execute>lightwatch-sentry.sh</execute>
    </action>
  </keybind>
  -->
<!-- Launch terminal -->
    <keybind key="C-F2">
      <action name="Execute">
        <execute>gnome-terminal --geometry=84x29 --tab --tab</execute>
      </action>
    </keybind>
<!-- Screen captures, both fullscreen and interactive. The import(1) -->
<!-- command is provided by ImageMagick (Gentoo ebuild:              -->
<!-- media-gfx/imagemagick).                                         -->
    <keybind key="Print">
      <action name="Execute">
        <execute>~/bin/screenshot -fs</execute>
      </action>
    </keybind>
    <keybind key="C-Print">
      <action name="Execute">
        <execute>~/bin/screenshot</execute>
      </action>
    </keybind>
<!-- Bind the application keys on my Dell SK-8135 keyboard -->
    <keybind key="XF86Calculator">
      <action name="Execute">
        <execute>gaim</execute>
      </action>
    </keybind>
    <keybind key="XF86Mail">
      <action name="Execute">
        <execute>thunderbird</execute>
      </action>
    </keybind>
    <keybind key="XF86MyComputer">
      <action name="Execute">
        <execute>firefox</execute>
      </action>
    </keybind>
<!-- ==================================================================== -->
<!-- Audio levels.                                                        -->
<!--                                                                      -->
<!-- The alsa-master-headphone-set.sh and alsa-mute-toggle.sh scripts can -->
<!-- be obtained from: http://www.jmglov.net/unix/scripts/                -->
<!-- In order for the multimedia keys (e.g. XF86AudioLowerVolume, etc.)   -->
<!-- to work, you will probably need to do some xmodmap magic, as         -->
<!-- described here: http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys     -->
<!-- If your keyboard does not have multimedia keys, just pick a key or   -->
<!-- key chord of your choosing (I used to use "Control Shift [" to lower -->
<!-- the volume, "Control Shift ]" to raise it, and ""Control Shift ^" to -->
<!-- toggle muting). Note that this will only work with ALSA (Gentoo      -->
<!-- will need to "emerge media-sound/alsa-utils" to get amixer(1)); if   -->
<!-- you use OSS, you will need to use some sort of OSS command-line      -->
<!-- mixer program instead of amixer(1).                                  -->
<!-- ==================================================================== -->
<!-- Set master / headphone volume -->
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <execute>~/bin/alsa-master-headphone-set.sh 5%- unmute</execute>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>~/bin/alsa-master-headphone-set.sh 5%+ unmute</execute>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <execute>~/bin/alsa-mute-toggle.sh 50% Master Headphone</execute>
      </action>
    </keybind>
<!-- Set mic volume -->
    <keybind key="C-XF86AudioLowerVolume">
      <action name="Execute">
        <execute>amixer set Mic 5%- unmute</execute>
      </action>
    </keybind>
    <keybind key="C-XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>amixer set Mic 5%+ unmute</execute>
      </action>
    </keybind>
    <keybind key="C-XF86AudioMute">
      <action name="Execute">
        <execute>~/bin/alsa-mute-toggle.sh 50% Mic</execute>
      </action>
    </keybind>
<!-- Set PCM volume -->
    <keybind key="A-C-XF86AudioLowerVolume">
      <action name="Execute">
        <execute>amixer set PCM 5%- unmute</execute>
      </action>
    </keybind>
    <keybind key="A-C-XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>amixer set PCM 5%+ unmute</execute>
      </action>
    </keybind>
    <keybind key="A-C-XF86AudioMute">
      <action name="Execute">
        <execute>~/bin/alsa-mute-toggle.sh 50% PCM</execute>
      </action>
    </keybind>
<!-- ==================================================================== -->
<!-- XMMS control                                                         -->
<!--                                                                      -->
<!-- You will need my start-xmms.sh script, available from:               -->
<!-- http://www.jmglov.net/unix/scripts/                                  -->
<!-- You will also need ctrlxmms (Gentoo users:                           -->
<!-- "emerge media-sound/ctrlxmms", others grab:                          -->
<!-- http://files.smidsrod.no/ctrlxmms-1.1.tar.gz).                       -->
<!-- ==================================================================== -->
<!-- Start XMMS -->
<!--
  <keybind key="C-S-x">
    <action name="Execute">
      <execute>start-xmms.sh</execute>
    </action>
  </keybind>
  -->
<!-- Toggle main and playlist windows -->
<!--
  <keybind key="C-S-m">
    <action name="Execute">
      <execute>ctrlxmms wintoggle</execute>
    </action>
  </keybind>
  <keybind key="C-S-p">
    <action name="Execute">
      <execute>ctrlxmms wintoggle pl</execute>
    </action>
  </keybind>
  -->
<!-- Play / pause and stop -->
<!--
  <keybind key="C-S-space">
    <action name="Execute">
      <execute>ctrlxmms playpause</execute>
    </action>
  </keybind>
  <keybind key="C-S-s">
    <action name="Execute">
      <execute>ctrlxmms stop</execute>
    </action>
  </keybind>
  -->
<!-- Back and forward in playlist -->
<!--
  <keybind key="C-S-b">
    <action name="Execute">
      <execute>ctrlxmms next</execute>
    </action>
  </keybind>
  <keybind key="C-S-f">
    <action name="Execute">
      <execute>ctrlxmms prev</execute>
    </action>
  </keybind>
  -->
<!-- Toggle repeat and shuffle (@ reminds me of a looping sign, and % -->
<!-- makes me think of random numbers, probably from rolling too many -->
<!-- "d%"s over the years in various tabletop role-playing games).    -->
<!--
  <keybind key="C-@">
    <action name="Execute">
      <execute>ctrlxmms repeat</execute>
    </action>
  </keybind>
  <keybind key="C-%">
    <action name="Execute">
      <execute>ctrlxmms shuffle</execute>
    </action>
  </keybind>
  -->
<!-- ==================================================================== -->
<!-- Window manipulation                                                  -->
<!-- ==================================================================== -->
<!-- Toggle shaded -->
    <keybind key="C-A-r">
      <action name="ToggleShade"/>
    </keybind>
<!-- Toggle decorations -->
    <keybind key="C-A-t">
      <action name="ToggleDecorations"/>
    </keybind>
<!-- Toggle omnipresent (AKA "sticky") -->
    <keybind key="C-A-x">
      <action name="ToggleOmnipresent"/>
    </keybind>
<!-- Maximise and minimise -->
    <keybind key="C-F12">
      <action name="ToggleMaximizeFull"/>
    </keybind>
    <keybind key="A-F12">
      <action name="Iconify"/>
    </keybind>
<!-- Enter interactive resize mode -->
    <keybind key="A-F8">
      <action name="Resize"/>
    </keybind>
<!-- Move -->
    <keybind key="A-C-Prior">
      <action name="MoveToEdgeNorth" />
    </keybind>
    <keybind key="A-C-Next">
      <action name="MoveToEdgeSouth" />
    </keybind>
    <keybind key="A-C-Home">
      <action name="MoveToEdgeWest" />
    </keybind>
    <keybind key="A-C-End">
      <action name="MoveToEdgeEast" />
    </keybind>
    <keybind key="A-C-Up">
      <action name="MoveRelative">
        <y>-25</y>
      </action>
    </keybind>
    <keybind key="A-C-Down">
      <action name="MoveRelative">
        <y>25</y>
      </action>
    </keybind>
    <keybind key="A-C-Right">
      <action name="MoveRelative">
        <x>25</x>
      </action>
    </keybind>
    <keybind key="A-C-Left">
      <action name="MoveRelative">
        <x>-25</x>
      </action>
    </keybind>
<!-- Enter interactive move mode -->
    <keybind key="A-F7">
      <action name="Move"/>
    </keybind>
<!-- Show client menu -->
    <keybind key="A-space">
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
    </keybind>
<!-- Close window -->
    <keybind key="A-F4">
      <action name="Close"/>
    </keybind>
<!-- Hide all windows -->
    <keybind key="C-A-d">
      <action name="ToggleShowDesktop"/>
    </keybind>
<!-- ==================================================================== -->
<!-- Window navigation                                                    -->
<!-- ==================================================================== -->
    <keybind key="A-Tab">
      <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow"/>
    </keybind>
    <keybind key="A-C-1">
      <action name="SendToDesktop">
        <desktop>1</desktop>
        <follow>yes</follow>
      </action>
    </keybind>
    <keybind key="A-C-2">
      <action name="SendToDesktop">
        <desktop>2</desktop>
        <follow>yes</follow>
      </action>
    </keybind>
    <keybind key="A-C-3">
      <action name="SendToDesktop">
        <desktop>3</desktop>
        <follow>yes</follow>
      </action>
    </keybind>
    <keybind key="A-C-4">
      <action name="SendToDesktop">
        <desktop>4</desktop>
        <follow>yes</follow>
      </action>
    </keybind>
    <keybind key="A-C-5">
      <action name="SendToDesktop">
        <desktop>5</desktop>
        <follow>yes</follow>
      </action>
    </keybind>
<!--
  <keybind key="A-C-6">
    <action name="SendToDesktop">
      <desktop>6</desktop>
      <follow>yes</follow>
    </action>
  </keybind>
  <keybind key="A-C-7">
    <action name="SendToDesktop">
      <desktop>7</desktop>
      <follow>yes</follow>
    </action>
  </keybind>
  <keybind key="A-C-8">
    <action name="SendToDesktop">
      <desktop>8</desktop>
      <follow>yes</follow>
    </action>
  </keybind>
  <keybind key="A-C-9">
    <action name="SendToDesktop">
      <desktop>9</desktop>
      <follow>yes</follow>
    </action>
  </keybind>
  <keybind key="A-C-0">
    <action name="SendToDesktop">
      <desktop>10</desktop>
      <follow>yes</follow>
    </action>
  </keybind>
  -->
<!-- ==================================================================== -->
<!-- Desktop navigation                                                   -->
<!-- ==================================================================== -->
    <keybind key="A-Right">
      <action name="DesktopRight">
        <wrap>yes</wrap>
      </action>
    </keybind>
    <keybind key="A-Left">
      <action name="DesktopLeft">
        <wrap>yes</wrap>
      </action>
    </keybind>
    <keybind key="A-1">
      <action name="Desktop">
        <desktop>1</desktop>
      </action>
    </keybind>
    <keybind key="A-2">
      <action name="Desktop">
        <desktop>2</desktop>
      </action>
    </keybind>
    <keybind key="A-3">
      <action name="Desktop">
        <desktop>3</desktop>
      </action>
    </keybind>
    <keybind key="A-4">
      <action name="Desktop">
        <desktop>4</desktop>
      </action>
    </keybind>
    <keybind key="A-5">
      <action name="Desktop">
        <desktop>5</desktop>
      </action>
    </keybind>
<!--
  <keybind key="A-6">
    <action name="Desktop">
      <desktop>1</desktop>
    </action>
  </keybind>
  <keybind key="A-7">
    <action name="Desktop">
      <desktop>1</desktop>
    </action>
  </keybind>
  <keybind key="A-8">
    <action name="Desktop">
      <desktop>1</desktop>
    </action>
  </keybind>
  <keybind key="A-9">
    <action name="Desktop">
      <desktop>1</desktop>
    </action>
  </keybind>
  <keybind key="A-0">
    <action name="Desktop">
      <desktop>1</desktop>
    </action>
  </keybind>
  -->
<!-- ==================================================================== -->
<!-- Window manager control                                               -->
<!-- ==================================================================== -->
<!-- To get the "Super" (Windows) keys working, you may need to follow the xev /      -->
<!-- xmodmap steps as detailed here: http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys -->
<!--                                                                                  -->
<!-- Display the Openbox menu                                                         -->
    <keybind key="Super_L">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>
    <keybind key="Super_R">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>
<!-- Reconfigure Openbox -->
    <keybind key="A-C-Delete">
      <action name="Reconfigure"/>
    </keybind>
<!-- ==================================================================== -->
  </keyboard>
  <mouse>
    <dragThreshold>8</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- time before changing desktops when the pointer touches the edge of the
       screen while moving a window, in milliseconds (1000 = 1 second),
       0 disables warping -->
    <context name="Frame">
      <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
        <action name="SendToDesktopPrevious"/>
      </mousebind>
      <mousebind button="A-S-Down" action="Click">
        <action name="SendToDesktopNext"/>
      </mousebind>
    </context>
    <context name="Titlebar">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Up" action="Click">
        <action name="Shade"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
        <action name="Lower"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="Unshade"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="Top">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>top</edge>
        </action>
      </mousebind>
    </context>
    <context name="Left">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>left</edge>
        </action>
      </mousebind>
    </context>
    <context name="Right">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>right</edge>
        </action>
      </mousebind>
    </context>
    <context name="Bottom">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize">
          <edge>bottom</edge>
        </action>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="BLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="BRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TLCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="TRCorner">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Drag">
        <action name="Resize"/>
      </mousebind>
    </context>
    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Icon">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="ShowMenu">
          <menu>client-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="AllDesktops">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleOmnipresent"/>
      </mousebind>
    </context>
    <context name="Shade">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleShade"/>
      </mousebind>
    </context>
    <context name="Iconify">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Iconify"/>
      </mousebind>
    </context>
    <context name="Maximize">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="ToggleMaximizeFull"/>
      </mousebind>
      <mousebind button="Middle" action="Click">
        <action name="ToggleMaximizeVert"/>
      </mousebind>
      <mousebind button="Right" action="Click">
        <action name="ToggleMaximizeHorz"/>
      </mousebind>
    </context>
    <context name="Close">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Close"/>
      </mousebind>
    </context>
    <context name="Desktop">
      <mousebind button="Up" action="Press">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Press">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Press">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Press">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Press">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Press">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Root">
<!-- Menus -->
      <mousebind button="Middle" action="Press">
        <action name="ShowMenu">
          <menu>client-list-combined-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="ShowMenu">
          <menu>root-menu</menu>
        </action>
      </mousebind>
    </context>
    <context name="MoveResize">
      <mousebind button="Up" action="Press">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Press">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="A-Up" action="Press">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Press">
        <action name="DesktopNext"/>
      </mousebind>
    </context>
  </mouse>
  <menu>
<!-- You can specify more than one menu file in here and they are all loaded,
       just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    <file>menu.xml</file>
    <hideDelay>200</hideDelay>
    <middle>yes</middle>
    <submenuShowDelay>100</submenuShowDelay>
    <applicationIcons>yes</applicationIcons>
  </menu>
  <applications>
<!--
  # this is an example with comments through out. use these to make your
  # own rules, but without the comments of course.

  # the name or the class can be set, or both. this is used to match
  # windows when they appear. role can optionally be set as well, to
  # further restrict your matches.

  # the name, class, and role use simple wildcard matching such as those
  # used by a shell. you can use * to match any characters and ? to match
  # any single character.

  # To determine class, name, etc.: xprop | grep WM_

  # when multiple rules match a window, they will all be applied, in the
  # order that they appear in this list
  <application name="first element of window's WM_CLASS property (see xprop)"
              class="second element of window's WM_CLASS property (see xprop)"
               role="the window's WM_WINDOW_ROLE property (see xprop)">

    # each element can be left out or set to 'default' to specify to not 
    # change that attribute of the window

    # enable or disable window decorations
    <decor>yes</decor>

    # make the window shaded when it appears, or not
    <shade>no</shade>

    # the position is only used if both an x and y coordinate are provided
    # (and not set to 'default')
    <position>
      # a number like 50, or 'center' to center on screen. use a negative number
      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
      # right edge (or bottom).
      <x>center</x>
      <y>200</y>

      # specifies the monitor in a xinerama setup.
      # 1 is the first head, or 'mouse' for wherever the mouse is
      <monitor>1</monitor>
    </position>

    # if the window should try be given focus when it appears. if this is set
    # to yes it doesn't guarantee the window will be given focus. some
    # restrictions may apply, but Openbox will try to
    <focus>yes</focus>

    # 1 is the first desktop, 'all' for all desktops
    <desktop>1</desktop>

    # 'above', 'normal', or 'below'
    <layer>normal</layer>

    # make the window iconified when it appears, or not
    <iconic>no</iconic>

    # asks to not be shown in pagers
    <skip_pager>no</skip_pager>

    # asks to not be shown in taskbars. window cycling actions will also
    # skip past such windows
    <skip_taskbar>no</skip_taskbar>

    # make the window in fullscreen mode when it appears
    <fullscreen>yes</fullscreen>

    # 'Horizontal', 'Vertical' or boolean (yes/no)
    <maximized>true</maximized>
  </application>

  # end of the example
-->
<!-- match all windows, and remove their decorations -->
    <application class="*">
      <decor>no</decor>
    </application>
<!-- Firefox on desktop 2 and maximized -->
    <application name="Firefox*">
      <desktop>2</desktop>
      <maximized>yes</maximized>
    </application>
<!-- XEmacs on desktop 3 -->
    <application class="Emacs">
      <desktop>3</desktop>
      <position>
        <x>-517</x>
        <y>0</y>
      </position>
    </application>
<!-- A is for Amarok, A is the 1st letter in the alphabet, so
       move Amarok to the first desktop -->
    <application class="Amarokapp">
      <desktop>4</desktop>
      <maximized>yes</maximized>
    </application>
  </applications>
</openbox_config>

