dotfiles

config files for my linux setup
git clone git://edryd.org/dotfiles
Log | Files | Refs | README

rc.xml (30318B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
      3   <resistance>
      4     <strength>10</strength>
      5     <screen_edge_strength>20</screen_edge_strength>
      6   </resistance>
      7   <focus>
      8     <focusNew>yes</focusNew>
      9     <!-- always try to focus new windows when they appear. other rules do
     10        apply -->
     11     <followMouse>no</followMouse>
     12     <!-- move focus to a window when you move the mouse into it -->
     13     <focusLast>yes</focusLast>
     14     <!-- focus the last used window when changing desktops, instead of the one
     15        under the mouse pointer. when followMouse is enabled -->
     16     <underMouse>no</underMouse>
     17     <!-- move focus under the mouse, even when the mouse is not moving -->
     18     <focusDelay>200</focusDelay>
     19     <!-- when followMouse is enabled, the mouse must be inside the window for
     20        this many milliseconds (1000 = 1 sec) before moving focus to it -->
     21     <raiseOnFocus>no</raiseOnFocus>
     22     <!-- when followMouse is enabled, and a window is given focus by moving the
     23        mouse into it, also raise the window -->
     24   </focus>
     25   <placement>
     26     <policy>UnderMouse</policy>
     27     <!-- 'Smart' or 'UnderMouse' -->
     28     <center>yes</center>
     29     <!-- whether to place windows in the center of the free area found or
     30        the top left corner -->
     31     <monitor>Mouse</monitor>
     32     <!-- with Smart placement on a multi-monitor system, try to place new windows
     33          on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
     34          the active window is, 'Primary' - only on the primary monitor -->
     35     <primaryMonitor>1</primaryMonitor>
     36     <!-- The monitor where Openbox should place popup dialogs such as the
     37          focus cycling popup, or the desktop switch popup.  It can be an index
     38          from 1, specifying a particular monitor.  Or it can be one of the
     39          following: 'Mouse' - where the mouse is, or
     40                     'Active' - where the active window is -->
     41   </placement>
     42   <theme>
     43     <name>Numix-Solarized</name>
     44     <titleLayout>DSLMC</titleLayout>
     45     <!--
     46       avaible characters are NDSLIMC, each can occur at most once.
     47       N: window icon
     48       L: window label (AKA title).
     49       I: iconify
     50       M: maximize
     51       C: close
     52       S: shade (roll up/down)
     53       D: omnipresent (on all desktops).
     54   -->
     55     <keepBorder>yes</keepBorder>
     56     <animateIconify>yes</animateIconify>
     57     <font place="ActiveWindow">
     58       <name>Liberation Sans</name>
     59       <size>10</size>
     60       <!-- font size in points -->
     61       <weight>Bold</weight>
     62       <!-- 'bold' or 'normal' -->
     63       <slant>Normal</slant>
     64       <!-- 'italic' or 'normal' -->
     65     </font>
     66     <font place="InactiveWindow">
     67       <name>Liberation Sans</name>
     68       <size>10</size>
     69       <!-- font size in points -->
     70       <weight>Normal</weight>
     71       <!-- 'bold' or 'normal' -->
     72       <slant>Normal</slant>
     73       <!-- 'italic' or 'normal' -->
     74     </font>
     75     <font place="MenuHeader">
     76       <name>Liberation Sans</name>
     77       <size>10</size>
     78       <!-- font size in points -->
     79       <weight>Normal</weight>
     80       <!-- 'bold' or 'normal' -->
     81       <slant>Normal</slant>
     82       <!-- 'italic' or 'normal' -->
     83     </font>
     84     <font place="MenuItem">
     85       <name>Liberation Sans</name>
     86       <size>10</size>
     87       <!-- font size in points -->
     88       <weight>Normal</weight>
     89       <!-- 'bold' or 'normal' -->
     90       <slant>Normal</slant>
     91       <!-- 'italic' or 'normal' -->
     92     </font>
     93     <font place="ActiveOnScreenDisplay">
     94       <name>Liberation Sans</name>
     95       <size>10</size>
     96       <!-- font size in points -->
     97       <weight>Normal</weight>
     98       <!-- 'bold' or 'normal' -->
     99       <slant>normal</slant>
    100       <!-- 'italic' or 'normal' -->
    101     </font>
    102     <font place="InactiveOnScreenDisplay">
    103       <name>Liberation Sans</name>
    104       <size>10</size>
    105       <!-- font size in points -->
    106       <weight>Normal</weight>
    107       <!-- 'bold' or 'normal' -->
    108       <slant>normal</slant>
    109       <!-- 'italic' or 'normal' -->
    110     </font>
    111   </theme>
    112   <desktops>
    113     <!-- this stuff is only used at startup, pagers allow you to change them
    114        during a session
    115 
    116        these are default values to use when other ones are not already set
    117        by other applications, or saved in your session
    118 
    119        use obconf if you want to change these without having to log out
    120        and back in -->
    121     <number>3</number>
    122     <firstdesk>1</firstdesk>
    123     <names>
    124       <name>1</name>
    125       <name>2</name>
    126       <name>3</name>
    127       <name>4</name>
    128     </names>
    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. -->
    132   </desktops>
    133   <resize>
    134     <drawContents>yes</drawContents>
    135     <popupShow>Nonpixel</popupShow>
    136     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    137     <popupPosition>Center</popupPosition>
    138     <!-- 'Center' or 'Top' -->
    139     <popupFixedPosition>
    140       <!-- these are used if popupPosition is set to 'Fixed' -->
    141       <x>10</x>
    142       <!-- positive number for distance from left edge, negative number for
    143            distance from right edge, or 'Center' -->
    144       <y>10</y>
    145       <!-- positive number for distance from top edge, negative number for
    146            distance from bottom edge, or 'Center' -->
    147     </popupFixedPosition>
    148   </resize>
    149   <!-- You can reserve a portion of your screen where windows will not cover when
    150        they are maximized, or when they are initially placed.
    151        Many programs reserve space automatically, but you can use this in other
    152        cases. -->
    153   <margins>
    154     <top>1</top>
    155     <bottom>0</bottom>
    156     <left>0</left>
    157     <right>0</right>
    158   </margins>
    159   <dock>
    160     <position>TopLeft</position>
    161     <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    162     <floatingX>0</floatingX>
    163     <floatingY>0</floatingY>
    164     <noStrut>no</noStrut>
    165     <stacking>Above</stacking>
    166     <!-- 'Above', 'Normal', or 'Below' -->
    167     <direction>Vertical</direction>
    168     <!-- 'Vertical' or 'Horizontal' -->
    169     <autoHide>no</autoHide>
    170     <hideDelay>300</hideDelay>
    171     <!-- in milliseconds (1000 = 1 second) -->
    172     <showDelay>300</showDelay>
    173     <!-- in milliseconds (1000 = 1 second) -->
    174     <moveButton>Middle</moveButton>
    175     <!-- 'Left', 'Middle', 'Right' -->
    176   </dock>
    177   <keyboard>
    178     <chainQuitKey>C-g</chainQuitKey>
    179     <!-- Keybindings for desktop switching -->
    180     <keybind key="C-A-h">
    181       <action name="GoToDesktop">
    182         <to>left</to>
    183         <wrap>no</wrap>
    184       </action>
    185     </keybind>
    186     <keybind key="C-A-l">
    187       <action name="GoToDesktop">
    188         <to>right</to>
    189         <wrap>no</wrap>
    190       </action>
    191     </keybind>
    192     <keybind key="C-A-k">
    193       <action name="GoToDesktop">
    194         <to>up</to>
    195         <wrap>no</wrap>
    196       </action>
    197     </keybind>
    198     <keybind key="C-A-j">
    199       <action name="GoToDesktop">
    200         <to>down</to>
    201         <wrap>no</wrap>
    202       </action>
    203     </keybind>
    204     <keybind key="C-A-S-h">
    205       <action name="SendToDesktop">
    206         <to>left</to>
    207         <wrap>no</wrap>
    208       </action>
    209     </keybind>
    210     <keybind key="C-A-S-l">
    211       <action name="SendToDesktop">
    212         <to>right</to>
    213         <wrap>no</wrap>
    214       </action>
    215     </keybind>
    216     <keybind key="C-A-S-k">
    217       <action name="SendToDesktop">
    218         <to>up</to>
    219         <wrap>no</wrap>
    220       </action>
    221     </keybind>
    222     <keybind key="C-A-S-j">
    223       <action name="SendToDesktop">
    224         <to>down</to>
    225         <wrap>no</wrap>
    226       </action>
    227     </keybind>
    228     <!-- Keybindings for windows -->
    229     <keybind key="A-F4">
    230       <action name="Close"/>
    231     </keybind>
    232     <keybind key="A-Escape">
    233       <action name="Lower"/>
    234       <action name="FocusToBottom"/>
    235       <action name="Unfocus"/>
    236     </keybind>
    237     <keybind key="A-space">
    238       <action name="ShowMenu">
    239         <menu>client-menu</menu>
    240       </action>
    241     </keybind>
    242     <keybind key="Print">
    243       <action name="Execute">
    244         <command>xfce4-screenshooter</command>
    245       </action>
    246     </keybind>
    247     <keybind key="A-Print">
    248       <action name="Execute">
    249         <command>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/pictures/ &amp; viewnior ~/pictures/$f'</command>
    250       </action>
    251     </keybind>
    252     <!-- Keybindings for window switching -->
    253     <keybind key="A-Tab">
    254       <action name="NextWindow">
    255         <finalactions>
    256           <action name="Focus"/>
    257           <action name="Raise"/>
    258           <action name="Unshade"/>
    259         </finalactions>
    260       </action>
    261     </keybind>
    262     <keybind key="A-S-Tab">
    263       <action name="PreviousWindow">
    264         <finalactions>
    265           <action name="Focus"/>
    266           <action name="Raise"/>
    267           <action name="Unshade"/>
    268         </finalactions>
    269       </action>
    270     </keybind>
    271     <keybind key="C-A-Tab">
    272       <action name="NextWindow">
    273         <panels>yes</panels>
    274         <desktop>yes</desktop>
    275         <finalactions>
    276           <action name="Focus"/>
    277           <action name="Raise"/>
    278           <action name="Unshade"/>
    279         </finalactions>
    280       </action>
    281     </keybind>
    282     <!-- Keybindings for window switching with the arrow keys -->
    283     <keybind key="W-S-l">
    284       <action name="DirectionalCycleWindows">
    285         <direction>right</direction>
    286       </action>
    287     </keybind>
    288     <keybind key="W-S-h">
    289       <action name="DirectionalCycleWindows">
    290         <direction>left</direction>
    291       </action>
    292     </keybind>
    293     <keybind key="W-S-k">
    294       <action name="DirectionalCycleWindows">
    295         <direction>up</direction>
    296       </action>
    297     </keybind>
    298     <keybind key="W-S-j">
    299       <action name="DirectionalCycleWindows">
    300         <direction>down</direction>
    301       </action>
    302     </keybind>
    303     <!-- Keybindings for running applications -->
    304     <keybind key="W-z">
    305       <action name="Execute">
    306         <startupnotify>
    307           <enabled>true</enabled>
    308           <name>dmenu-bind</name>
    309         </startupnotify>
    310         <command>~/.config/dmenu/dmenu-bind.sh</command>
    311       </action>
    312     </keybind>
    313     <keybind key="W-c">
    314       <action name="Execute">
    315         <startupnotify>
    316           <enabled>true</enabled>
    317           <name>dmenu-calc</name>
    318         </startupnotify>
    319         <command>dmenu-calc.sh</command>
    320       </action>
    321     </keybind>
    322     <keybind key="W-f">
    323       <action name="Execute">
    324         <startupnotify>
    325           <enabled>true</enabled>
    326           <name>thunar</name>
    327         </startupnotify>
    328         <command>thunar</command>
    329       </action>
    330     </keybind>
    331     <keybind key="W-t">
    332       <action name="Execute">
    333         <startupnotify>
    334           <enabled>true</enabled>
    335           <name>Terminal</name>
    336         </startupnotify>
    337         <command>tabbed -c st -w</command>
    338       </action>
    339     </keybind>
    340     <keybind key="W-w">
    341       <action name="Execute">
    342         <startupnotify>
    343           <enabled>true</enabled>
    344           <name>Web Browser</name>
    345         </startupnotify>
    346         <command>firefox</command>
    347       </action>
    348     </keybind>
    349     <keybind key="W-l">
    350       <action name="Execute">
    351         <startupnotify>
    352           <enabled>true</enabled>
    353           <name>Lock screen</name>
    354         </startupnotify>
    355         <command>slock</command>
    356       </action>
    357     </keybind>
    358     <keybind key="W-x">
    359       <action name="Execute">
    360         <startupnotify>
    361           <enabled>true</enabled>
    362           <name>Logout</name>
    363         </startupnotify>
    364         <command>cb-exit</command>
    365       </action>
    366     </keybind>
    367     <keybind key="W-Tab">
    368       <action name="ShowMenu">
    369         <menu>client-list-combined-menu</menu>
    370       </action>
    371     </keybind>
    372     <keybind key="W-space">
    373       <action name="ShowMenu">
    374         <menu>root-menu</menu>
    375       </action>
    376     </keybind>
    377     <keybind key="A-C-q">
    378       <action name="ShowMenu">
    379         <menu>root-menu</menu>
    380       </action>
    381     </keybind>
    382     <!-- A bit of tiling -->
    383     <keybind key="W-Right">
    384       <action name="GrowToEdgeEast"/>
    385     </keybind>
    386     <keybind key="W-Left">
    387       <action name="GrowToEdgeWest"/>
    388     </keybind>
    389     <keybind key="W-Down">
    390       <action name="GrowToEdgeSouth"/>
    391     </keybind>
    392     <keybind key="W-Up">
    393       <action name="GrowToEdgeNorth"/>
    394     </keybind>
    395     <keybind key="W-A-Left">
    396       <action name="Execute">
    397         <command>cb-aerosnap --left</command>
    398       </action>
    399     </keybind>
    400     <keybind key="W-A-Right">
    401       <action name="Execute">
    402         <command>cb-aerosnap --right</command>
    403       </action>
    404     </keybind>
    405     <!-- Launch tmuxinator templates -->
    406     <!-- Open dotfiles -->
    407     <keybind key="W-d">
    408       <action name="Execute">
    409         <command>st -t "Dotfiles" -e mux s dot </command>
    410       </action>
    411     </keybind>
    412     <!-- Open utilities -->
    413     <keybind key="W-u">
    414       <action name="Execute">
    415         <command>st -t "Utilities" -e mux s util </command>
    416       </action>
    417     </keybind>
    418     <!-- Open internet applications -->
    419     <keybind key="W-i">
    420       <action name="Execute">
    421         <command>terminator --title "Internet" --command="mux s internet" </command>
    422       </action>
    423     </keybind>
    424     <!-- Open scripts -->
    425     <keybind key="W-s">
    426       <action name="Execute">
    427         <command>st -t "Scripts" -e mux s scripts </command>
    428       </action>
    429     </keybind>
    430     <!-- Open ratium project -->
    431     <keybind key="W-r">
    432       <action name="Execute">
    433         <command>st -t "Ratium" -e mux s ratium </command>
    434       </action>
    435     </keybind>
    436   </keyboard>
    437   <mouse>
    438     <dragThreshold>8</dragThreshold>
    439     <!-- number of pixels the mouse must move before a drag begins -->
    440     <doubleClickTime>200</doubleClickTime>
    441     <!-- in milliseconds (1000 = 1 second) -->
    442     <screenEdgeWarpTime>400</screenEdgeWarpTime>
    443     <!-- Time before changing desktops when the pointer touches the edge of the
    444        screen while moving a window, in milliseconds (1000 = 1 second).
    445        Set this to 0 to disable warping -->
    446     <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
    447     <!-- Set this to TRUE to move the mouse pointer across the desktop when
    448        switching due to hitting the edge of the screen -->
    449     <context name="Frame">
    450       <mousebind button="A-Left" action="Press">
    451         <action name="Focus"/>
    452         <action name="Raise"/>
    453       </mousebind>
    454       <mousebind button="A-Left" action="Click">
    455         <action name="Unshade"/>
    456       </mousebind>
    457       <mousebind button="A-Left" action="Drag">
    458         <action name="Move"/>
    459       </mousebind>
    460       <mousebind button="A-Right" action="Press">
    461         <action name="Focus"/>
    462         <action name="Raise"/>
    463         <action name="Unshade"/>
    464       </mousebind>
    465       <mousebind button="A-Right" action="Drag">
    466         <action name="Resize"/>
    467       </mousebind>
    468       <mousebind button="A-Middle" action="Press">
    469         <action name="Lower"/>
    470         <action name="FocusToBottom"/>
    471         <action name="Unfocus"/>
    472       </mousebind>
    473       <mousebind button="A-Up" action="Click">
    474         <action name="GoToDesktop">
    475           <to>previous</to>
    476         </action>
    477       </mousebind>
    478       <mousebind button="A-Down" action="Click">
    479         <action name="GoToDesktop">
    480           <to>next</to>
    481         </action>
    482       </mousebind>
    483       <mousebind button="C-A-Up" action="Click">
    484         <action name="GoToDesktop">
    485           <to>previous</to>
    486         </action>
    487       </mousebind>
    488       <mousebind button="C-A-Down" action="Click">
    489         <action name="GoToDesktop">
    490           <to>next</to>
    491         </action>
    492       </mousebind>
    493       <mousebind button="A-S-Up" action="Click">
    494         <action name="SendToDesktop">
    495           <to>previous</to>
    496         </action>
    497       </mousebind>
    498       <mousebind button="A-S-Down" action="Click">
    499         <action name="SendToDesktop">
    500           <to>next</to>
    501         </action>
    502       </mousebind>
    503     </context>
    504     <context name="Titlebar">
    505       <mousebind button="Left" action="Press">
    506         <action name="Focus"/>
    507         <action name="Raise"/>
    508       </mousebind>
    509       <mousebind button="Left" action="Drag">
    510         <action name="Move"/>
    511       </mousebind>
    512       <mousebind button="Left" action="DoubleClick">
    513         <action name="ToggleMaximize"/>
    514       </mousebind>
    515       <mousebind button="Middle" action="Press">
    516         <action name="Lower"/>
    517         <action name="FocusToBottom"/>
    518         <action name="Unfocus"/>
    519       </mousebind>
    520       <mousebind button="Up" action="Click">
    521         <action name="if">
    522           <shaded>no</shaded>
    523           <then>
    524             <action name="Shade"/>
    525             <action name="FocusToBottom"/>
    526             <action name="Unfocus"/>
    527             <action name="Lower"/>
    528           </then>
    529         </action>
    530       </mousebind>
    531       <mousebind button="Down" action="Click">
    532         <action name="if">
    533           <shaded>yes</shaded>
    534           <then>
    535             <action name="Unshade"/>
    536             <action name="Raise"/>
    537           </then>
    538         </action>
    539       </mousebind>
    540       <mousebind button="Right" action="Press">
    541         <action name="Focus"/>
    542         <action name="Raise"/>
    543         <action name="ShowMenu">
    544           <menu>client-menu</menu>
    545         </action>
    546       </mousebind>
    547     </context>
    548     <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
    549       <mousebind button="Left" action="Press">
    550         <action name="Focus"/>
    551         <action name="Raise"/>
    552         <action name="Unshade"/>
    553       </mousebind>
    554       <mousebind button="Middle" action="Press">
    555         <action name="Lower"/>
    556         <action name="FocusToBottom"/>
    557         <action name="Unfocus"/>
    558       </mousebind>
    559       <mousebind button="Right" action="Press">
    560         <action name="Focus"/>
    561         <action name="Raise"/>
    562         <action name="ShowMenu">
    563           <menu>client-menu</menu>
    564         </action>
    565       </mousebind>
    566     </context>
    567     <context name="Top">
    568       <mousebind button="Left" action="Press">
    569         <action name="Focus"/>
    570         <action name="Raise"/>
    571         <action name="Unshade"/>
    572       </mousebind>
    573       <mousebind button="Left" action="Drag">
    574         <action name="Resize">
    575           <edge>top</edge>
    576         </action>
    577       </mousebind>
    578     </context>
    579     <context name="Left">
    580       <mousebind button="Left" action="Press">
    581         <action name="Focus"/>
    582         <action name="Raise"/>
    583       </mousebind>
    584       <mousebind button="Left" action="Drag">
    585         <action name="Resize">
    586           <edge>left</edge>
    587         </action>
    588       </mousebind>
    589     </context>
    590     <context name="Right">
    591       <mousebind button="Left" action="Press">
    592         <action name="Focus"/>
    593         <action name="Raise"/>
    594       </mousebind>
    595       <mousebind button="Left" action="Drag">
    596         <action name="Resize">
    597           <edge>right</edge>
    598         </action>
    599       </mousebind>
    600     </context>
    601     <context name="Bottom">
    602       <mousebind button="Left" action="Press">
    603         <action name="Focus"/>
    604         <action name="Raise"/>
    605       </mousebind>
    606       <mousebind button="Left" action="Drag">
    607         <action name="Resize">
    608           <edge>bottom</edge>
    609         </action>
    610       </mousebind>
    611       <mousebind button="Middle" action="Press">
    612         <action name="Lower"/>
    613         <action name="FocusToBottom"/>
    614         <action name="Unfocus"/>
    615       </mousebind>
    616       <mousebind button="Right" action="Press">
    617         <action name="Focus"/>
    618         <action name="Raise"/>
    619         <action name="ShowMenu">
    620           <menu>client-menu</menu>
    621         </action>
    622       </mousebind>
    623     </context>
    624     <context name="TRCorner BRCorner TLCorner BLCorner">
    625       <mousebind button="Left" action="Press">
    626         <action name="Focus"/>
    627         <action name="Raise"/>
    628         <action name="Unshade"/>
    629       </mousebind>
    630       <mousebind button="Left" action="Drag">
    631         <action name="Resize"/>
    632       </mousebind>
    633     </context>
    634     <context name="Client">
    635       <mousebind button="Left" action="Press">
    636         <action name="Focus"/>
    637         <action name="Raise"/>
    638       </mousebind>
    639       <mousebind button="Middle" action="Press">
    640         <action name="Focus"/>
    641         <action name="Raise"/>
    642       </mousebind>
    643       <mousebind button="Right" action="Press">
    644         <action name="Focus"/>
    645         <action name="Raise"/>
    646       </mousebind>
    647     </context>
    648     <context name="Icon">
    649       <mousebind button="Left" action="Press">
    650         <action name="Focus"/>
    651         <action name="Raise"/>
    652         <action name="Unshade"/>
    653         <action name="ShowMenu">
    654           <menu>client-menu</menu>
    655         </action>
    656       </mousebind>
    657       <mousebind button="Right" action="Press">
    658         <action name="Focus"/>
    659         <action name="Raise"/>
    660         <action name="ShowMenu">
    661           <menu>client-menu</menu>
    662         </action>
    663       </mousebind>
    664     </context>
    665     <context name="AllDesktops">
    666       <mousebind button="Left" action="Press">
    667         <action name="Focus"/>
    668         <action name="Raise"/>
    669         <action name="Unshade"/>
    670       </mousebind>
    671       <mousebind button="Left" action="Click">
    672         <action name="ToggleOmnipresent"/>
    673       </mousebind>
    674     </context>
    675     <context name="Shade">
    676       <mousebind button="Left" action="Press">
    677         <action name="Focus"/>
    678         <action name="Raise"/>
    679       </mousebind>
    680       <mousebind button="Left" action="Click">
    681         <action name="ToggleShade"/>
    682       </mousebind>
    683     </context>
    684     <context name="Iconify">
    685       <mousebind button="Left" action="Press">
    686         <action name="Focus"/>
    687         <action name="Raise"/>
    688       </mousebind>
    689       <mousebind button="Left" action="Click">
    690         <action name="Iconify"/>
    691       </mousebind>
    692     </context>
    693     <context name="Maximize">
    694       <mousebind button="Left" action="Press">
    695         <action name="Focus"/>
    696         <action name="Raise"/>
    697         <action name="Unshade"/>
    698       </mousebind>
    699       <mousebind button="Middle" action="Press">
    700         <action name="Focus"/>
    701         <action name="Raise"/>
    702         <action name="Unshade"/>
    703       </mousebind>
    704       <mousebind button="Right" action="Press">
    705         <action name="Focus"/>
    706         <action name="Raise"/>
    707         <action name="Unshade"/>
    708       </mousebind>
    709       <mousebind button="Left" action="Click">
    710         <action name="ToggleMaximize"/>
    711       </mousebind>
    712       <mousebind button="Middle" action="Click">
    713         <action name="ToggleMaximize">
    714           <direction>vertical</direction>
    715         </action>
    716       </mousebind>
    717       <mousebind button="Right" action="Click">
    718         <action name="ToggleMaximize">
    719           <direction>horizontal</direction>
    720         </action>
    721       </mousebind>
    722     </context>
    723     <context name="Close">
    724       <mousebind button="Left" action="Press">
    725         <action name="Focus"/>
    726         <action name="Raise"/>
    727         <action name="Unshade"/>
    728       </mousebind>
    729       <mousebind button="Left" action="Click">
    730         <action name="Close"/>
    731       </mousebind>
    732     </context>
    733     <context name="Desktop">
    734       <mousebind button="A-Up" action="Click">
    735         <action name="GoToDesktop">
    736           <to>previous</to>
    737         </action>
    738       </mousebind>
    739       <mousebind button="A-Down" action="Click">
    740         <action name="GoToDesktop">
    741           <to>next</to>
    742         </action>
    743       </mousebind>
    744       <mousebind button="C-A-Up" action="Click">
    745         <action name="GoToDesktop">
    746           <to>previous</to>
    747         </action>
    748       </mousebind>
    749       <mousebind button="C-A-Down" action="Click">
    750         <action name="GoToDesktop">
    751           <to>next</to>
    752         </action>
    753       </mousebind>
    754       <mousebind button="Left" action="Press">
    755         <action name="Focus"/>
    756         <action name="Raise"/>
    757       </mousebind>
    758     </context>
    759     <context name="Root">
    760       <!-- Menus -->
    761       <mousebind button="Middle" action="Press">
    762         <action name="ShowMenu">
    763           <menu>client-list-combined-menu</menu>
    764         </action>
    765       </mousebind>
    766       <mousebind button="Right" action="Press">
    767         <action name="ShowMenu">
    768           <menu>root-menu</menu>
    769         </action>
    770       </mousebind>
    771     </context>
    772     <context name="MoveResize">
    773       <mousebind button="Up" action="Click">
    774         <action name="GoToDesktop">
    775           <to>previous</to>
    776         </action>
    777       </mousebind>
    778       <mousebind button="Down" action="Click">
    779         <action name="GoToDesktop">
    780           <to>next</to>
    781         </action>
    782       </mousebind>
    783       <mousebind button="A-Up" action="Click">
    784         <action name="GoToDesktop">
    785           <to>previous</to>
    786         </action>
    787       </mousebind>
    788       <mousebind button="A-Down" action="Click">
    789         <action name="GoToDesktop">
    790           <to>next</to>
    791         </action>
    792       </mousebind>
    793     </context>
    794   </mouse>
    795   <menu>
    796     <!-- You can specify more than one menu file in here and they are all loaded,
    797        just don't make menu ids clash or, well, it'll be kind of pointless -->
    798     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    799     <!-- system menu files on Debian systems
    800     <file>/var/lib/openbox/debian-menu.xml</file>
    801     <file>debian-menu.xml</file> -->
    802     <file>menu.xml</file>
    803     <hideDelay>200</hideDelay>
    804     <!-- if a press-release lasts longer than this setting (in milliseconds), the
    805        menu is hidden again -->
    806     <middle>no</middle>
    807     <!-- center submenus vertically about the parent entry -->
    808     <submenuShowDelay>100</submenuShowDelay>
    809     <!-- time to delay before showing a submenu after hovering over the parent
    810        entry.
    811        if this is a negative value, then the delay is infinite and the
    812        submenu will not be shown until it is clicked on -->
    813     <submenuHideDelay>400</submenuHideDelay>
    814     <!-- time to delay before hiding a submenu when selecting another
    815        entry in parent menu
    816        if this is a negative value, then the delay is infinite and the
    817        submenu will not be hidden until a different submenu is opened -->
    818     <applicationIcons>yes</applicationIcons>
    819     <!-- controls if icons appear in the client-list-(combined-)menu -->
    820     <manageDesktops>yes</manageDesktops>
    821     <!-- show the manage desktops section in the client-list-(combined-)menu -->
    822   </menu>
    823   <applications>
    824     <!--
    825   # this is an example with comments through out. use these to make your
    826   # own rules, but without the comments of course.
    827   # you may use one or more of the name/class/role/title/type rules to specify
    828   # windows to match
    829 
    830   <application name="the window's _OB_APP_NAME property (see obxprop)"
    831               class="the window's _OB_APP_CLASS property (see obxprop)"
    832                role="the window's _OB_APP_ROLE property (see obxprop)"
    833               title="the window's _OB_APP_TITLE property (see obxprop)"
    834                type="the window's _OB_APP_TYPE property (see obxprob)..
    835                       (if unspecified, then it is 'dialog' for child windows)">
    836   # you may set only one of name/class/role/title/type, or you may use more
    837   # than one together to restrict your matches.
    838 
    839   # the name, class, role, and title use simple wildcard matching such as those
    840   # used by a shell. you can use * to match any characters and ? to match
    841   # any single character.
    842 
    843   # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
    844   #    or desktop
    845 
    846   # when multiple rules match a window, they will all be applied, in the
    847   # order that they appear in this list
    848 
    849 
    850     # each rule element can be left out or set to 'default' to specify to not
    851     # change that attribute of the window
    852 
    853     <decor>yes</decor>
    854     # enable or disable window decorations
    855 
    856     <shade>no</shade>
    857     # make the window shaded when it appears, or not
    858 
    859     <position force="no">
    860       # the position is only used if both an x and y coordinate are provided
    861       # (and not set to 'default')
    862       # when force is "yes", then the window will be placed here even if it
    863       # says you want it placed elsewhere.  this is to override buggy
    864       # applications who refuse to behave
    865       <x>center</x>
    866       # a number like 50, or 'center' to center on screen. use a negative number
    867       # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
    868       # right edge (or bottom).
    869       <y>200</y>
    870       <monitor>1</monitor>
    871       # specifies the monitor in a xinerama setup.
    872       # 1 is the first head, or 'mouse' for wherever the mouse is
    873     </position>
    874 
    875     <focus>yes</focus>
    876     # if the window should try be given focus when it appears. if this is set
    877     # to yes it doesn't guarantee the window will be given focus. some
    878     # restrictions may apply, but Openbox will try to
    879 
    880     <desktop>1</desktop>
    881     # 1 is the first desktop, 'all' for all desktops
    882 
    883     <layer>normal</layer>
    884     # 'above', 'normal', or 'below'
    885 
    886     <iconic>no</iconic>
    887     # make the window iconified when it appears, or not
    888 
    889     <skip_pager>no</skip_pager>
    890     # asks to not be shown in pagers
    891 
    892     <skip_taskbar>no</skip_taskbar>
    893     # asks to not be shown in taskbars. window cycling actions will also
    894     # skip past such windows
    895 
    896     <fullscreen>yes</fullscreen>
    897     # make the window in fullscreen mode when it appears
    898 
    899     <maximized>true</maximized>
    900     # 'Horizontal', 'Vertical' or boolean (yes/no)
    901   </application>
    902 
    903   # end of the example
    904 -->
    905     <application name="gmessage">
    906       <decor>no</decor>
    907       <shade>no</shade>
    908       <skip_pager>yes</skip_pager>
    909       <skip_taskbar>yes</skip_taskbar>
    910       <fullscreen>no</fullscreen>
    911       <maximized>no</maximized>
    912     </application>
    913     <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
    914       <maximized>vertical</maximized>
    915     </application>
    916     <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
    917       <maximized>vertical</maximized>
    918     </application>
    919     <application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
    920       <position force="no">
    921         <x>center</x>
    922         <y>center</y>
    923       </position>
    924     </application>
    925     <application class="Gimp" name="gimp-2.8" role="gimp-toolbox" type="utility">
    926       <maximized>vertical</maximized>
    927     </application>
    928     <application class="Gimp" name="gimp-2.8" role="gimp-dock" type="utility">
    929       <maximized>vertical</maximized>
    930     </application>
    931     <application class="Gimp" name="gimp-2.8" role="gimp-image-window" type="normal">
    932       <position force="no">
    933         <x>center</x>
    934         <y>center</y>
    935       </position>
    936     </application>
    937     <application class="*">
    938       <decor>no</decor>
    939     </application>
    940   </applications>
    941 </openbox_config>