archvortex

AB2011.11 rc.xml

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