Advertisement
Guest User

Untitled

a guest
Mar 24th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 31.41 KB | None | 0 0
  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>Smart</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>Any</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>waldorf</name>
  44.     <titleLayout>DSLIMC</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>no</animateIconify>
  57.     <font place="ActiveWindow">
  58.       <name>Liberation Sans</name>
  59.       <size>8</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>8</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>8</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>8</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>8</size>
  96.       <!-- font size in points -->
  97.       <weight>Bold</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>8</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>2</number>
  122.     <firstdesk>1</firstdesk>
  123.     <names>
  124.       <!-- set names up here if you want to, like this:
  125.      <name>desktop 1</name>
  126.      <name>desktop 2</name>
  127.      -->
  128.       <name>1</name>
  129.       <name>2</name>
  130.       <name>3</name>
  131.       <name>4</name>
  132.     </names>
  133.     <popupTime>875</popupTime>
  134.     <!-- The number of milliseconds to show the popup for when switching
  135.         desktops.  Set this to 0 to disable the popup. -->
  136.   </desktops>
  137.   <resize>
  138.     <drawContents>yes</drawContents>
  139.     <popupShow>Nonpixel</popupShow>
  140.     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  141.     <popupPosition>Center</popupPosition>
  142.     <!-- 'Center' or 'Top' -->
  143.     <popupFixedPosition>
  144.       <!-- these are used if popupPosition is set to 'Fixed' -->
  145.       <x>10</x>
  146.       <!-- positive number for distance from left edge, negative number for
  147.           distance from right edge, or 'Center' -->
  148.       <y>10</y>
  149.       <!-- positive number for distance from top edge, negative number for
  150.           distance from bottom edge, or 'Center' -->
  151.     </popupFixedPosition>
  152.   </resize>
  153.   <!-- You can reserve a portion of your screen where windows will not cover when
  154.       they are maximized, or when they are initially placed.
  155.       Many programs reserve space automatically, but you can use this in other
  156.       cases. -->
  157.   <margins>
  158.     <top>0</top>
  159.     <bottom>0</bottom>
  160.     <left>0</left>
  161.     <right>0</right>
  162.   </margins>
  163.   <dock>
  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' -->
  180.   </dock>
  181.   <keyboard>
  182.     <chainQuitKey>C-g</chainQuitKey>
  183.     <!-- Keybindings for desktop switching -->
  184.     <keybind key="C-A-Left">
  185.       <action name="GoToDesktop">
  186.         <to>left</to>
  187.         <wrap>no</wrap>
  188.       </action>
  189.     </keybind>
  190.     <keybind key="C-A-Right">
  191.       <action name="GoToDesktop">
  192.         <to>right</to>
  193.         <wrap>no</wrap>
  194.       </action>
  195.     </keybind>
  196.     <keybind key="C-A-Up">
  197.       <action name="GoToDesktop">
  198.         <to>up</to>
  199.         <wrap>no</wrap>
  200.       </action>
  201.     </keybind>
  202.     <keybind key="C-A-Down">
  203.       <action name="GoToDesktop">
  204.         <to>down</to>
  205.         <wrap>no</wrap>
  206.       </action>
  207.     </keybind>
  208.     <keybind key="S-A-Left">
  209.       <action name="SendToDesktop">
  210.         <to>left</to>
  211.         <wrap>no</wrap>
  212.       </action>
  213.     </keybind>
  214.     <keybind key="S-A-Right">
  215.       <action name="SendToDesktop">
  216.         <to>right</to>
  217.         <wrap>no</wrap>
  218.       </action>
  219.     </keybind>
  220.     <keybind key="S-A-Up">
  221.       <action name="SendToDesktop">
  222.         <to>up</to>
  223.         <wrap>no</wrap>
  224.       </action>
  225.     </keybind>
  226.     <keybind key="S-A-Down">
  227.       <action name="SendToDesktop">
  228.         <to>down</to>
  229.         <wrap>no</wrap>
  230.       </action>
  231.     </keybind>
  232.     <keybind key="W-F1">
  233.       <action name="GoToDesktop">
  234.         <to>1</to>
  235.       </action>
  236.     </keybind>
  237.     <keybind key="W-F2">
  238.       <action name="GoToDesktop">
  239.         <to>2</to>
  240.       </action>
  241.     </keybind>
  242.     <keybind key="W-F3">
  243.       <action name="GoToDesktop">
  244.         <to>3</to>
  245.       </action>
  246.     </keybind>
  247.     <keybind key="W-F4">
  248.       <action name="GoToDesktop">
  249.         <to>4</to>
  250.       </action>
  251.     </keybind>
  252.     <keybind key="W-d">
  253.       <action name="ToggleShowDesktop"/>
  254.     </keybind>
  255.     <!-- Keybindings for windows -->
  256.     <keybind key="A-F4">
  257.       <action name="Close"/>
  258.     </keybind>
  259.     <keybind key="A-Escape">
  260.       <action name="Lower"/>
  261.       <action name="FocusToBottom"/>
  262.       <action name="Unfocus"/>
  263.     </keybind>
  264.     <keybind key="A-space">
  265.       <action name="ShowMenu">
  266.         <menu>client-menu</menu>
  267.       </action>
  268.     </keybind>
  269.     <keybind key="Print">
  270.       <action name="Execute">
  271.         <command>xfce4-screenshooter</command>
  272.       </action>
  273.     </keybind>
  274.     <keybind key="A-Print">
  275.       <action name="Execute">
  276.         <command>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ &amp; viewnior ~/images/$f'</command>
  277.       </action>
  278.     </keybind>
  279.     <!-- Keybindings for window switching -->
  280.     <keybind key="A-Tab">
  281.       <action name="NextWindow">
  282.         <finalactions>
  283.           <action name="Focus"/>
  284.           <action name="Raise"/>
  285.           <action name="Unshade"/>
  286.         </finalactions>
  287.       </action>
  288.     </keybind>
  289.     <keybind key="A-S-Tab">
  290.       <action name="PreviousWindow">
  291.         <finalactions>
  292.           <action name="Focus"/>
  293.           <action name="Raise"/>
  294.           <action name="Unshade"/>
  295.         </finalactions>
  296.       </action>
  297.     </keybind>
  298.     <keybind key="C-A-Tab">
  299.       <action name="NextWindow">
  300.         <panels>yes</panels>
  301.         <desktop>yes</desktop>
  302.         <finalactions>
  303.           <action name="Focus"/>
  304.           <action name="Raise"/>
  305.           <action name="Unshade"/>
  306.         </finalactions>
  307.       </action>
  308.     </keybind>
  309.     <!-- Keybindings for window switching with the arrow keys -->
  310.     <keybind key="W-S-Right">
  311.       <action name="DirectionalCycleWindows">
  312.         <direction>right</direction>
  313.       </action>
  314.     </keybind>
  315.     <keybind key="W-S-Left">
  316.       <action name="DirectionalCycleWindows">
  317.         <direction>left</direction>
  318.       </action>
  319.     </keybind>
  320.     <keybind key="W-S-Up">
  321.       <action name="DirectionalCycleWindows">
  322.         <direction>up</direction>
  323.       </action>
  324.     </keybind>
  325.     <keybind key="W-S-Down">
  326.       <action name="DirectionalCycleWindows">
  327.         <direction>down</direction>
  328.       </action>
  329.     </keybind>
  330.     <!-- Keybindings for running applications -->
  331.     <keybind key="A-F2">
  332.       <action name="Execute">
  333.         <startupnotify>
  334.           <enabled>true</enabled>
  335.           <name>Run Program</name>
  336.         </startupnotify>
  337.         <command>gmrun</command>
  338.       </action>
  339.     </keybind>
  340.     <keybind key="A-F3">
  341.       <action name="Execute">
  342.         <startupnotify>
  343.           <enabled>true</enabled>
  344.           <name>dmenu-bind</name>
  345.         </startupnotify>
  346.         <command>~/.config/dmenu/dmenu-bind.sh</command>
  347.       </action>
  348.     </keybind>
  349.     <keybind key="W-f">
  350.       <action name="Execute">
  351.         <startupnotify>
  352.           <enabled>true</enabled>
  353.           <name>thunar</name>
  354.         </startupnotify>
  355.         <command>thunar</command>
  356.       </action>
  357.     </keybind>
  358.     <keybind key="W-t">
  359.       <action name="Execute">
  360.         <startupnotify>
  361.           <enabled>true</enabled>
  362.           <name>Terminal</name>
  363.         </startupnotify>
  364.         <command>terminator</command>
  365.       </action>
  366.     </keybind>
  367.     <keybind key="W-w">
  368.       <action name="Execute">
  369.         <startupnotify>
  370.           <enabled>true</enabled>
  371.           <name>Web Browser</name>
  372.         </startupnotify>
  373.         <command>x-www-browser</command>
  374.       </action>
  375.     </keybind>
  376.     <keybind key="W-l">
  377.       <action name="Execute">
  378.         <startupnotify>
  379.           <enabled>true</enabled>
  380.           <name>Lock screen</name>
  381.         </startupnotify>
  382.         <command>cb-lock</command>
  383.       </action>
  384.     </keybind>
  385.     <keybind key="W-e">
  386.       <action name="Execute">
  387.         <startupnotify>
  388.           <enabled>true</enabled>
  389.           <name>Editor</name>
  390.         </startupnotify>
  391.         <command>geany</command>
  392.       </action>
  393.     </keybind>
  394.     <keybind key="W-m">
  395.       <action name="Execute">
  396.         <startupnotify>
  397.           <enabled>true</enabled>
  398.           <name>Mediaplayer</name>
  399.         </startupnotify>
  400.         <command>vlc</command>
  401.       </action>
  402.     </keybind>
  403.     <keybind key="W-h">
  404.       <action name="Execute">
  405.         <startupnotify>
  406.           <enabled>true</enabled>
  407.           <name>htop</name>
  408.         </startupnotify>
  409.         <command>terminator --command="htop"</command>
  410.       </action>
  411.     </keybind>
  412.     <keybind key="W-v">
  413.       <action name="Execute">
  414.         <startupnotify>
  415.           <enabled>true</enabled>
  416.           <name>Volume</name>
  417.         </startupnotify>
  418.         <command>pavucontrol</command>
  419.       </action>
  420.     </keybind>
  421.     <keybind key="W-x">
  422.       <action name="Execute">
  423.         <startupnotify>
  424.           <enabled>true</enabled>
  425.           <name>Logout</name>
  426.         </startupnotify>
  427.         <command>cb-exit</command>
  428.       </action>
  429.     </keybind>
  430.     <keybind key="W-Tab">
  431.       <action name="ShowMenu">
  432.         <menu>client-list-combined-menu</menu>
  433.       </action>
  434.     </keybind>
  435.     <keybind key="W-space">
  436.       <action name="ShowMenu">
  437.         <menu>root-menu</menu>
  438.       </action>
  439.     </keybind>
  440.     <keybind key="A-C-q">
  441.       <action name="ShowMenu">
  442.         <menu>root-menu</menu>
  443.       </action>
  444.     </keybind>
  445.     <!-- A bit of tiling -->
  446.     <keybind key="W-Right">
  447.       <action name="GrowToEdgeEast"/>
  448.     </keybind>
  449.     <keybind key="W-Left">
  450.       <action name="GrowToEdgeWest"/>
  451.     </keybind>
  452.     <keybind key="W-Down">
  453.       <action name="GrowToEdgeSouth"/>
  454.     </keybind>
  455.     <keybind key="W-Up">
  456.       <action name="GrowToEdgeNorth"/>
  457.     </keybind>
  458.     <keybind key="W-A-Left">
  459.       <action name="Execute">
  460.         <command>cb-aerosnap --left</command>
  461.       </action>
  462.     </keybind>
  463.     <keybind key="W-A-Right">
  464.       <action name="Execute">
  465.         <command>cb-aerosnap --right</command>
  466.       </action>
  467.     </keybind>
  468.   </keyboard>
  469.   <mouse>
  470.     <dragThreshold>8</dragThreshold>
  471.     <!-- number of pixels the mouse must move before a drag begins -->
  472.     <doubleClickTime>200</doubleClickTime>
  473.     <!-- in milliseconds (1000 = 1 second) -->
  474.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  475.     <!-- Time before changing desktops when the pointer touches the edge of the
  476.       screen while moving a window, in milliseconds (1000 = 1 second).
  477.       Set this to 0 to disable warping -->
  478.     <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  479.     <!-- Set this to TRUE to move the mouse pointer across the desktop when
  480.       switching due to hitting the edge of the screen -->
  481.     <context name="Frame">
  482.       <mousebind button="A-Left" action="Press">
  483.         <action name="Focus"/>
  484.         <action name="Raise"/>
  485.       </mousebind>
  486.       <mousebind button="A-Left" action="Click">
  487.         <action name="Unshade"/>
  488.       </mousebind>
  489.       <mousebind button="A-Left" action="Drag">
  490.         <action name="Move"/>
  491.       </mousebind>
  492.       <mousebind button="A-Right" action="Press">
  493.         <action name="Focus"/>
  494.         <action name="Raise"/>
  495.         <action name="Unshade"/>
  496.       </mousebind>
  497.       <mousebind button="A-Right" action="Drag">
  498.         <action name="Resize"/>
  499.       </mousebind>
  500.       <mousebind button="A-Middle" action="Press">
  501.         <action name="Lower"/>
  502.         <action name="FocusToBottom"/>
  503.         <action name="Unfocus"/>
  504.       </mousebind>
  505.       <mousebind button="A-Up" action="Click">
  506.         <action name="GoToDesktop">
  507.           <to>previous</to>
  508.         </action>
  509.       </mousebind>
  510.       <mousebind button="A-Down" action="Click">
  511.         <action name="GoToDesktop">
  512.           <to>next</to>
  513.         </action>
  514.       </mousebind>
  515.       <mousebind button="C-A-Up" action="Click">
  516.         <action name="GoToDesktop">
  517.           <to>previous</to>
  518.         </action>
  519.       </mousebind>
  520.       <mousebind button="C-A-Down" action="Click">
  521.         <action name="GoToDesktop">
  522.           <to>next</to>
  523.         </action>
  524.       </mousebind>
  525.       <mousebind button="A-S-Up" action="Click">
  526.         <action name="SendToDesktop">
  527.           <to>previous</to>
  528.         </action>
  529.       </mousebind>
  530.       <mousebind button="A-S-Down" action="Click">
  531.         <action name="SendToDesktop">
  532.           <to>next</to>
  533.         </action>
  534.       </mousebind>
  535.     </context>
  536.     <context name="Titlebar">
  537.       <mousebind button="Left" action="Press">
  538.         <action name="Focus"/>
  539.         <action name="Raise"/>
  540.       </mousebind>
  541.       <mousebind button="Left" action="Drag">
  542.         <action name="Move"/>
  543.       </mousebind>
  544.       <mousebind button="Left" action="DoubleClick">
  545.         <action name="ToggleMaximize"/>
  546.       </mousebind>
  547.       <mousebind button="Middle" action="Press">
  548.         <action name="Lower"/>
  549.         <action name="FocusToBottom"/>
  550.         <action name="Unfocus"/>
  551.       </mousebind>
  552.       <mousebind button="Up" action="Click">
  553.         <action name="if">
  554.           <shaded>no</shaded>
  555.           <then>
  556.             <action name="Shade"/>
  557.             <action name="FocusToBottom"/>
  558.             <action name="Unfocus"/>
  559.             <action name="Lower"/>
  560.           </then>
  561.         </action>
  562.       </mousebind>
  563.       <mousebind button="Down" action="Click">
  564.         <action name="if">
  565.           <shaded>yes</shaded>
  566.           <then>
  567.             <action name="Unshade"/>
  568.             <action name="Raise"/>
  569.           </then>
  570.         </action>
  571.       </mousebind>
  572.       <mousebind button="Right" action="Press">
  573.         <action name="Focus"/>
  574.         <action name="Raise"/>
  575.         <action name="ShowMenu">
  576.           <menu>client-menu</menu>
  577.         </action>
  578.       </mousebind>
  579.     </context>
  580.     <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  581.       <mousebind button="Left" action="Press">
  582.         <action name="Focus"/>
  583.         <action name="Raise"/>
  584.         <action name="Unshade"/>
  585.       </mousebind>
  586.       <mousebind button="Middle" action="Press">
  587.         <action name="Lower"/>
  588.         <action name="FocusToBottom"/>
  589.         <action name="Unfocus"/>
  590.       </mousebind>
  591.       <mousebind button="Right" action="Press">
  592.         <action name="Focus"/>
  593.         <action name="Raise"/>
  594.         <action name="ShowMenu">
  595.           <menu>client-menu</menu>
  596.         </action>
  597.       </mousebind>
  598.     </context>
  599.     <context name="Top">
  600.       <mousebind button="Left" action="Press">
  601.         <action name="Focus"/>
  602.         <action name="Raise"/>
  603.         <action name="Unshade"/>
  604.       </mousebind>
  605.       <mousebind button="Left" action="Drag">
  606.         <action name="Resize">
  607.           <edge>top</edge>
  608.         </action>
  609.       </mousebind>
  610.     </context>
  611.     <context name="Left">
  612.       <mousebind button="Left" action="Press">
  613.         <action name="Focus"/>
  614.         <action name="Raise"/>
  615.       </mousebind>
  616.       <mousebind button="Left" action="Drag">
  617.         <action name="Resize">
  618.           <edge>left</edge>
  619.         </action>
  620.       </mousebind>
  621.     </context>
  622.     <context name="Right">
  623.       <mousebind button="Left" action="Press">
  624.         <action name="Focus"/>
  625.         <action name="Raise"/>
  626.       </mousebind>
  627.       <mousebind button="Left" action="Drag">
  628.         <action name="Resize">
  629.           <edge>right</edge>
  630.         </action>
  631.       </mousebind>
  632.     </context>
  633.     <context name="Bottom">
  634.       <mousebind button="Left" action="Press">
  635.         <action name="Focus"/>
  636.         <action name="Raise"/>
  637.       </mousebind>
  638.       <mousebind button="Left" action="Drag">
  639.         <action name="Resize">
  640.           <edge>bottom</edge>
  641.         </action>
  642.       </mousebind>
  643.       <mousebind button="Middle" action="Press">
  644.         <action name="Lower"/>
  645.         <action name="FocusToBottom"/>
  646.         <action name="Unfocus"/>
  647.       </mousebind>
  648.       <mousebind button="Right" action="Press">
  649.         <action name="Focus"/>
  650.         <action name="Raise"/>
  651.         <action name="ShowMenu">
  652.           <menu>client-menu</menu>
  653.         </action>
  654.       </mousebind>
  655.     </context>
  656.     <context name="TRCorner BRCorner TLCorner BLCorner">
  657.       <mousebind button="Left" action="Press">
  658.         <action name="Focus"/>
  659.         <action name="Raise"/>
  660.         <action name="Unshade"/>
  661.       </mousebind>
  662.       <mousebind button="Left" action="Drag">
  663.         <action name="Resize"/>
  664.       </mousebind>
  665.     </context>
  666.     <context name="Client">
  667.       <mousebind button="Left" action="Press">
  668.         <action name="Focus"/>
  669.         <action name="Raise"/>
  670.       </mousebind>
  671.       <mousebind button="Middle" action="Press">
  672.         <action name="Focus"/>
  673.         <action name="Raise"/>
  674.       </mousebind>
  675.       <mousebind button="Right" action="Press">
  676.         <action name="Focus"/>
  677.         <action name="Raise"/>
  678.       </mousebind>
  679.     </context>
  680.     <context name="Icon">
  681.       <mousebind button="Left" action="Press">
  682.         <action name="Focus"/>
  683.         <action name="Raise"/>
  684.         <action name="Unshade"/>
  685.         <action name="ShowMenu">
  686.           <menu>client-menu</menu>
  687.         </action>
  688.       </mousebind>
  689.       <mousebind button="Right" action="Press">
  690.         <action name="Focus"/>
  691.         <action name="Raise"/>
  692.         <action name="ShowMenu">
  693.           <menu>client-menu</menu>
  694.         </action>
  695.       </mousebind>
  696.     </context>
  697.     <context name="AllDesktops">
  698.       <mousebind button="Left" action="Press">
  699.         <action name="Focus"/>
  700.         <action name="Raise"/>
  701.         <action name="Unshade"/>
  702.       </mousebind>
  703.       <mousebind button="Left" action="Click">
  704.         <action name="ToggleOmnipresent"/>
  705.       </mousebind>
  706.     </context>
  707.     <context name="Shade">
  708.       <mousebind button="Left" action="Press">
  709.         <action name="Focus"/>
  710.         <action name="Raise"/>
  711.       </mousebind>
  712.       <mousebind button="Left" action="Click">
  713.         <action name="ToggleShade"/>
  714.       </mousebind>
  715.     </context>
  716.     <context name="Iconify">
  717.       <mousebind button="Left" action="Press">
  718.         <action name="Focus"/>
  719.         <action name="Raise"/>
  720.       </mousebind>
  721.       <mousebind button="Left" action="Click">
  722.         <action name="Iconify"/>
  723.       </mousebind>
  724.     </context>
  725.     <context name="Maximize">
  726.       <mousebind button="Left" action="Press">
  727.         <action name="Focus"/>
  728.         <action name="Raise"/>
  729.         <action name="Unshade"/>
  730.       </mousebind>
  731.       <mousebind button="Middle" action="Press">
  732.         <action name="Focus"/>
  733.         <action name="Raise"/>
  734.         <action name="Unshade"/>
  735.       </mousebind>
  736.       <mousebind button="Right" action="Press">
  737.         <action name="Focus"/>
  738.         <action name="Raise"/>
  739.         <action name="Unshade"/>
  740.       </mousebind>
  741.       <mousebind button="Left" action="Click">
  742.         <action name="ToggleMaximize"/>
  743.       </mousebind>
  744.       <mousebind button="Middle" action="Click">
  745.         <action name="ToggleMaximize">
  746.           <direction>vertical</direction>
  747.         </action>
  748.       </mousebind>
  749.       <mousebind button="Right" action="Click">
  750.         <action name="ToggleMaximize">
  751.           <direction>horizontal</direction>
  752.         </action>
  753.       </mousebind>
  754.     </context>
  755.     <context name="Close">
  756.       <mousebind button="Left" action="Press">
  757.         <action name="Focus"/>
  758.         <action name="Raise"/>
  759.         <action name="Unshade"/>
  760.       </mousebind>
  761.       <mousebind button="Left" action="Click">
  762.         <action name="Close"/>
  763.       </mousebind>
  764.     </context>
  765.     <context name="Desktop">
  766.       <mousebind button="Up" action="Click">
  767.         <action name="GoToDesktop">
  768.           <to>previous</to>
  769.         </action>
  770.       </mousebind>
  771.       <mousebind button="Down" action="Click">
  772.         <action name="GoToDesktop">
  773.           <to>next</to>
  774.         </action>
  775.       </mousebind>
  776.       <mousebind button="A-Up" action="Click">
  777.         <action name="GoToDesktop">
  778.           <to>previous</to>
  779.         </action>
  780.       </mousebind>
  781.       <mousebind button="A-Down" action="Click">
  782.         <action name="GoToDesktop">
  783.           <to>next</to>
  784.         </action>
  785.       </mousebind>
  786.       <mousebind button="C-A-Up" action="Click">
  787.         <action name="GoToDesktop">
  788.           <to>previous</to>
  789.         </action>
  790.       </mousebind>
  791.       <mousebind button="C-A-Down" action="Click">
  792.         <action name="GoToDesktop">
  793.           <to>next</to>
  794.         </action>
  795.       </mousebind>
  796.       <mousebind button="Left" action="Press">
  797.         <action name="Focus"/>
  798.         <action name="Raise"/>
  799.       </mousebind>
  800.     </context>
  801.     <context name="Root">
  802.       <!-- Menus -->
  803.       <mousebind button="Middle" action="Press">
  804.         <action name="ShowMenu">
  805.           <menu>client-list-combined-menu</menu>
  806.         </action>
  807.       </mousebind>
  808.       <mousebind button="Right" action="Press">
  809.         <action name="ShowMenu">
  810.           <menu>root-menu</menu>
  811.         </action>
  812.       </mousebind>
  813.     </context>
  814.     <context name="MoveResize">
  815.       <mousebind button="Up" action="Click">
  816.         <action name="GoToDesktop">
  817.           <to>previous</to>
  818.         </action>
  819.       </mousebind>
  820.       <mousebind button="Down" action="Click">
  821.         <action name="GoToDesktop">
  822.           <to>next</to>
  823.         </action>
  824.       </mousebind>
  825.       <mousebind button="A-Up" action="Click">
  826.         <action name="GoToDesktop">
  827.           <to>previous</to>
  828.         </action>
  829.       </mousebind>
  830.       <mousebind button="A-Down" action="Click">
  831.         <action name="GoToDesktop">
  832.           <to>next</to>
  833.         </action>
  834.       </mousebind>
  835.     </context>
  836.   </mouse>
  837.   <menu>
  838.     <!-- You can specify more than one menu file in here and they are all loaded,
  839.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  840.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  841.     <!-- system menu files on Debian systems
  842.    <file>/var/lib/openbox/debian-menu.xml</file>
  843.    <file>debian-menu.xml</file> -->
  844.     <file>menu.xml</file>
  845.     <hideDelay>200</hideDelay>
  846.     <!-- if a press-release lasts longer than this setting (in milliseconds), the
  847.       menu is hidden again -->
  848.     <middle>no</middle>
  849.     <!-- center submenus vertically about the parent entry -->
  850.     <submenuShowDelay>100</submenuShowDelay>
  851.     <!-- time to delay before showing a submenu after hovering over the parent
  852.       entry.
  853.       if this is a negative value, then the delay is infinite and the
  854.       submenu will not be shown until it is clicked on -->
  855.     <submenuHideDelay>400</submenuHideDelay>
  856.     <!-- time to delay before hiding a submenu when selecting another
  857.       entry in parent menu
  858.       if this is a negative value, then the delay is infinite and the
  859.       submenu will not be hidden until a different submenu is opened -->
  860.     <applicationIcons>yes</applicationIcons>
  861.     <!-- controls if icons appear in the client-list-(combined-)menu -->
  862.     <manageDesktops>yes</manageDesktops>
  863.     <!-- show the manage desktops section in the client-list-(combined-)menu -->
  864.   </menu>
  865.   <applications>
  866.     <!--
  867.  # this is an example with comments through out. use these to make your
  868.  # own rules, but without the comments of course.
  869.  # you may use one or more of the name/class/role/title/type rules to specify
  870.  # windows to match
  871.  
  872.  <application name="the window's _OB_APP_NAME property (see obxprop)"
  873.              class="the window's _OB_APP_CLASS property (see obxprop)"
  874.               role="the window's _OB_APP_ROLE property (see obxprop)"
  875.              title="the window's _OB_APP_TITLE property (see obxprop)"
  876.               type="the window's _OB_APP_TYPE property (see obxprob)..
  877.                      (if unspecified, then it is 'dialog' for child windows)">
  878.  # you may set only one of name/class/role/title/type, or you may use more
  879.  # than one together to restrict your matches.
  880.  
  881.  # the name, class, role, and title use simple wildcard matching such as those
  882.  # used by a shell. you can use * to match any characters and ? to match
  883.  # any single character.
  884.  
  885.  # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  886.  #    or desktop
  887.  
  888.  # when multiple rules match a window, they will all be applied, in the
  889.  # order that they appear in this list
  890.  
  891.  
  892.    # each rule element can be left out or set to 'default' to specify to not
  893.    # change that attribute of the window
  894.  
  895.    <decor>yes</decor>
  896.    # enable or disable window decorations
  897.  
  898.    <shade>no</shade>
  899.    # make the window shaded when it appears, or not
  900.  
  901.    <position force="no">
  902.      # the position is only used if both an x and y coordinate are provided
  903.      # (and not set to 'default')
  904.      # when force is "yes", then the window will be placed here even if it
  905.      # says you want it placed elsewhere.  this is to override buggy
  906.      # applications who refuse to behave
  907.      <x>center</x>
  908.      # a number like 50, or 'center' to center on screen. use a negative number
  909.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  910.      # right edge (or bottom).
  911.      <y>200</y>
  912.      <monitor>1</monitor>
  913.      # specifies the monitor in a xinerama setup.
  914.      # 1 is the first head, or 'mouse' for wherever the mouse is
  915.    </position>
  916.  
  917.    <focus>yes</focus>
  918.    # if the window should try be given focus when it appears. if this is set
  919.    # to yes it doesn't guarantee the window will be given focus. some
  920.    # restrictions may apply, but Openbox will try to
  921.  
  922.    <desktop>1</desktop>
  923.    # 1 is the first desktop, 'all' for all desktops
  924.  
  925.    <layer>normal</layer>
  926.    # 'above', 'normal', or 'below'
  927.  
  928.    <iconic>no</iconic>
  929.    # make the window iconified when it appears, or not
  930.  
  931.    <skip_pager>no</skip_pager>
  932.    # asks to not be shown in pagers
  933.  
  934.    <skip_taskbar>no</skip_taskbar>
  935.    # asks to not be shown in taskbars. window cycling actions will also
  936.    # skip past such windows
  937.  
  938.    <fullscreen>yes</fullscreen>
  939.    # make the window in fullscreen mode when it appears
  940.  
  941.    <maximized>true</maximized>
  942.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  943.  </application>
  944.  
  945.  # end of the example
  946. -->
  947.     <application name="gmessage">
  948.       <decor>no</decor>
  949.       <shade>no</shade>
  950.       <skip_pager>yes</skip_pager>
  951.       <skip_taskbar>yes</skip_taskbar>
  952.       <fullscreen>no</fullscreen>
  953.       <maximized>no</maximized>
  954.     </application>
  955.     <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
  956.       <maximized>vertical</maximized>
  957.     </application>
  958.     <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
  959.       <maximized>vertical</maximized>
  960.     </application>
  961.     <application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
  962.       <position force="no">
  963.         <x>center</x>
  964.         <y>center</y>
  965.       </position>
  966.     </application>
  967.     <application class="Gimp" name="gimp-2.8" role="gimp-toolbox" type="utility">
  968.       <maximized>vertical</maximized>
  969.     </application>
  970.     <application class="Gimp" name="gimp-2.8" role="gimp-dock" type="utility">
  971.       <maximized>vertical</maximized>
  972.     </application>
  973.     <application class="Gimp" name="gimp-2.8" role="gimp-image-window" type="normal">
  974.       <position force="no">
  975.         <x>center</x>
  976.         <y>center</y>
  977.       </position>
  978.     </application>
  979.   </applications>
  980. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement