Advertisement
Guest User

Untitled

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