Guest User

Untitled

a guest
Oct 21st, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 26.31 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Do not edit this file, it will be overwritten on install.
  3.        Copy the file to $HOME/.config/openbox/ instead. -->
  4. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  5.   <resistance>
  6.     <strength>10</strength>
  7.     <screen_edge_strength>20</screen_edge_strength>
  8.   </resistance>
  9.   <focus>
  10.     <focusNew>yes</focusNew>
  11.     <!-- always try to focus new windows when they appear. other rules do
  12.       apply -->
  13.     <followMouse>yes</followMouse>
  14.     <!-- move focus to a window when you move the mouse into it -->
  15.     <focusLast>yes</focusLast>
  16.     <!-- focus the last used window when changing desktops, instead of the one
  17.       under the mouse pointer. when followMouse is enabled -->
  18.     <underMouse>no</underMouse>
  19.     <!-- move focus under the mouse, even when the mouse is not moving -->
  20.     <focusDelay>0</focusDelay>
  21.     <!-- when followMouse is enabled, the mouse must be inside the window for
  22.       this many milliseconds (1000 = 1 sec) before moving focus to it -->
  23.     <raiseOnFocus>no</raiseOnFocus>
  24.     <!-- when followMouse is enabled, and a window is given focus by moving the
  25.       mouse into it, also raise the window -->
  26.   </focus>
  27.   <placement>
  28.     <policy>UnderMouse</policy>
  29.     <!-- 'Smart' or 'UnderMouse' -->
  30.     <monitor>Primary</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, 'Primary' - only on the primary monitor -->
  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.     <center>yes</center>
  41.   </placement>
  42.   <theme>
  43.     <name>iris-master</name>
  44.     <titleLayout>LIMC</titleLayout>
  45.     <!--
  46.      available 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>Open Sans Semibold</name>
  59.       <size>8</size>
  60.       <!-- font size in points -->
  61.       <weight>Normal</weight>
  62.       <!-- 'bold' or 'normal' -->
  63.       <slant>Normal</slant>
  64.       <!-- 'italic' or 'normal' -->
  65.     </font>
  66.     <font place="InactiveWindow">
  67.       <name>Open Sans Semibold</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>Open Sans Semibold</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>Open Sans Semibold</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>Open Sans Semibold</name>
  95.       <size>8</size>
  96.       <!-- font size in points -->
  97.       <weight>Normal</weight>
  98.       <!-- 'bold' or 'normal' -->
  99.       <slant>Normal</slant>
  100.       <!-- 'italic' or 'normal' -->
  101.     </font>
  102.     <font place="InactiveOnScreenDisplay">
  103.       <name>Open Sans Semibold</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>4</number>
  122.     <firstdesk>1</firstdesk>
  123.     <names>
  124.       <name>SAS</name>
  125.       <name>Чики</name>
  126.       <name>Лукойл</name>
  127.       <name>Двощ</name>
  128.     </names>
  129.     <popupTime>875</popupTime>
  130.     <!-- The number of milliseconds to show the popup for when switching
  131.       desktops.  Set this to 0 to disable the popup. -->
  132.   </desktops>
  133.   <resize>
  134.     <drawContents>yes</drawContents>
  135.     <popupShow>Nonpixel</popupShow>
  136.     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  137.     <popupPosition>Center</popupPosition>
  138.     <!-- 'Center', 'Top', or 'Fixed' -->
  139.     <popupFixedPosition>
  140.       <!-- these are used if popupPosition is set to 'Fixed' -->
  141.       <x>10</x>
  142.       <!-- positive number for distance from left edge, negative number for
  143.         distance from right edge, or 'Center' -->
  144.       <y>10</y>
  145.       <!-- positive number for distance from top edge, negative number for
  146.         distance from bottom edge, or 'Center' -->
  147.     </popupFixedPosition>
  148.   </resize>
  149.   <!-- You can reserve a portion of your screen where windows will not cover when
  150.     they are maximized, or when they are initially placed.
  151.     Many programs reserve space automatically, but you can use this in other
  152.     cases. -->
  153.   <margins>
  154.     <top>0</top>
  155.     <bottom>0</bottom>
  156.     <left>0</left>
  157.     <right>0</right>
  158.   </margins>
  159.   <dock>
  160.     <position>TopLeft</position>
  161.     <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  162.     <floatingX>0</floatingX>
  163.     <floatingY>0</floatingY>
  164.     <noStrut>no</noStrut>
  165.     <stacking>Above</stacking>
  166.     <!-- 'Above', 'Normal', or 'Below' -->
  167.     <direction>Vertical</direction>
  168.     <!-- 'Vertical' or 'Horizontal' -->
  169.     <autoHide>no</autoHide>
  170.     <hideDelay>300</hideDelay>
  171.     <!-- in milliseconds (1000 = 1 second) -->
  172.     <showDelay>300</showDelay>
  173.     <!-- in milliseconds (1000 = 1 second) -->
  174.     <moveButton>Middle</moveButton>
  175.     <!-- 'Left', 'Middle', 'Right' -->
  176.   </dock>
  177.   <keyboard>
  178.     <chainQuitKey>C-g</chainQuitKey>
  179.     <!-- Keybindings for desktop switching -->
  180.     <keybind key="C-A-Left">
  181.       <action name="GoToDesktop">
  182.         <to>left</to>
  183.         <wrap>no</wrap>
  184.       </action>
  185.     </keybind>
  186.     <keybind key="C-A-Right">
  187.       <action name="GoToDesktop">
  188.         <to>right</to>
  189.         <wrap>no</wrap>
  190.       </action>
  191.     </keybind>
  192.     <keybind key="C-A-Up">
  193.       <action name="GoToDesktop">
  194.         <to>up</to>
  195.         <wrap>no</wrap>
  196.       </action>
  197.     </keybind>
  198.     <keybind key="C-A-Down">
  199.       <action name="GoToDesktop">
  200.         <to>down</to>
  201.         <wrap>no</wrap>
  202.       </action>
  203.     </keybind>
  204.     <keybind key="W-S-1">
  205.       <action name="SendToDesktop">
  206.         <to>1</to>
  207.         <wrap>no</wrap>
  208.       </action>
  209.     </keybind>
  210.     <keybind key="W-S-2">
  211.       <action name="SendToDesktop">
  212.         <to>2</to>
  213.         <wrap>no</wrap>
  214.       </action>
  215.     </keybind>
  216.     <keybind key="W-S-3">
  217.       <action name="SendToDesktop">
  218.         <to>3</to>
  219.         <wrap>no</wrap>
  220.       </action>
  221.     </keybind>
  222.     <keybind key="W-S-4">
  223.       <action name="SendToDesktop">
  224.         <to>4</to>
  225.         <wrap>no</wrap>
  226.       </action>
  227.     </keybind>
  228.     <keybind key="S-A-Left">
  229.       <action name="SendToDesktop">
  230.         <to>left</to>
  231.         <wrap>no</wrap>
  232.       </action>
  233.     </keybind>
  234.     <keybind key="S-A-Right">
  235.       <action name="SendToDesktop">
  236.         <to>right</to>
  237.         <wrap>no</wrap>
  238.       </action>
  239.     </keybind>
  240.     <keybind key="S-A-Up">
  241.       <action name="SendToDesktop">
  242.         <to>up</to>
  243.         <wrap>no</wrap>
  244.       </action>
  245.     </keybind>
  246.     <keybind key="S-A-Down">
  247.       <action name="SendToDesktop">
  248.         <to>down</to>
  249.         <wrap>no</wrap>
  250.       </action>
  251.     </keybind>
  252.     <keybind key="W-1">
  253.       <action name="GoToDesktop">
  254.         <to>1</to>
  255.       </action>
  256.     </keybind>
  257.     <keybind key="W-2">
  258.       <action name="GoToDesktop">
  259.         <to>2</to>
  260.       </action>
  261.     </keybind>
  262.     <keybind key="W-3">
  263.       <action name="GoToDesktop">
  264.         <to>3</to>
  265.       </action>
  266.     </keybind>
  267.     <keybind key="W-4">
  268.       <action name="GoToDesktop">
  269.         <to>4</to>
  270.       </action>
  271.     </keybind>
  272.     <keybind key="W-d">
  273.       <action name="ToggleShowDesktop"/>
  274.     </keybind>
  275.     <!-- Keybindings for windows -->
  276.     <keybind key="W-w">
  277.       <action name="Close"/>
  278.     </keybind>
  279.     <keybind key="A-Escape">
  280.       <action name="Lower"/>
  281.       <action name="FocusToBottom"/>
  282.       <action name="Unfocus"/>
  283.     </keybind>
  284.     <keybind key="A-space">
  285.       <action name="ShowMenu">
  286.         <menu>client-menu</menu>
  287.       </action>
  288.     </keybind>
  289.     <!-- Keybindings for window switching -->
  290.     <keybind key="A-Tab">
  291.       <action name="NextWindow">
  292.         <finalactions>
  293.           <action name="Focus"/>
  294.           <action name="Raise"/>
  295.           <action name="Unshade"/>
  296.         </finalactions>
  297.       </action>
  298.     </keybind>
  299.     <keybind key="A-S-Tab">
  300.       <action name="PreviousWindow">
  301.         <finalactions>
  302.           <action name="Focus"/>
  303.           <action name="Raise"/>
  304.           <action name="Unshade"/>
  305.         </finalactions>
  306.       </action>
  307.     </keybind>
  308.     <keybind key="C-A-Tab">
  309.       <action name="NextWindow">
  310.         <panels>yes</panels>
  311.         <desktop>yes</desktop>
  312.         <finalactions>
  313.           <action name="Focus"/>
  314.           <action name="Raise"/>
  315.           <action name="Unshade"/>
  316.         </finalactions>
  317.       </action>
  318.     </keybind>
  319.     <!-- Keybindings for window switching with the arrow keys -->
  320.     <keybind key="W-S-Right">
  321.       <action name="DirectionalCycleWindows">
  322.         <direction>right</direction>
  323.       </action>
  324.     </keybind>
  325.     <keybind key="W-S-Left">
  326.       <action name="DirectionalCycleWindows">
  327.         <direction>left</direction>
  328.       </action>
  329.     </keybind>
  330.     <keybind key="W-S-Up">
  331.       <action name="DirectionalCycleWindows">
  332.         <direction>up</direction>
  333.       </action>
  334.     </keybind>
  335.     <keybind key="W-S-Down">
  336.       <action name="DirectionalCycleWindows">
  337.         <direction>down</direction>
  338.       </action>
  339.     </keybind>
  340.     <!-- Keybindings for running applications -->
  341.     <keybind key="W-r">
  342.       <action name="Execute">
  343.         <startupnotify>
  344.           <enabled>true</enabled>
  345.           <name>gmrun</name>
  346.         </startupnotify>
  347.         <command>gmrun</command>
  348.       </action>
  349.     </keybind>
  350.   </keyboard>
  351.   <mouse>
  352.     <dragThreshold>1</dragThreshold>
  353.     <!-- number of pixels the mouse must move before a drag begins -->
  354.     <doubleClickTime>500</doubleClickTime>
  355.     <!-- in milliseconds (1000 = 1 second) -->
  356.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  357.     <!-- Time before changing desktops when the pointer touches the edge of the
  358.       screen while moving a window, in milliseconds (1000 = 1 second).
  359.       Set this to 0 to disable warping -->
  360.     <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  361.     <!-- Set this to TRUE to move the mouse pointer across the desktop when
  362.       switching due to hitting the edge of the screen -->
  363.     <context name="Frame">
  364.       <mousebind button="W-Left" action="Press">
  365.         <action name="Focus"/>
  366.         <action name="Raise"/>
  367.       </mousebind>
  368.       <mousebind button="W-Left" action="Click">
  369.         <action name="Unshade"/>
  370.       </mousebind>
  371.       <mousebind button="W-Left" action="Drag">
  372.         <action name="Move"/>
  373.       </mousebind>
  374.       <mousebind button="W-Right" action="Press">
  375.         <action name="Focus"/>
  376.         <action name="Raise"/>
  377.         <action name="Unshade"/>
  378.       </mousebind>
  379.       <mousebind button="W-Right" action="Drag">
  380.         <action name="Resize"/>
  381.       </mousebind>
  382.       <mousebind button="W-Middle" action="Press">
  383.         <action name="Lower"/>
  384.         <action name="FocusToBottom"/>
  385.         <action name="Unfocus"/>
  386.       </mousebind>
  387.       <mousebind button="A-Up" action="Click">
  388.         <action name="GoToDesktop">
  389.           <to>previous</to>
  390.         </action>
  391.       </mousebind>
  392.       <mousebind button="A-Down" action="Click">
  393.         <action name="GoToDesktop">
  394.           <to>next</to>
  395.         </action>
  396.       </mousebind>
  397.       <mousebind button="C-A-Up" action="Click">
  398.         <action name="GoToDesktop">
  399.           <to>previous</to>
  400.         </action>
  401.       </mousebind>
  402.       <mousebind button="C-A-Down" action="Click">
  403.         <action name="GoToDesktop">
  404.           <to>next</to>
  405.         </action>
  406.       </mousebind>
  407.       <mousebind button="A-S-Up" action="Click">
  408.         <action name="SendToDesktop">
  409.           <to>previous</to>
  410.         </action>
  411.       </mousebind>
  412.       <mousebind button="A-S-Down" action="Click">
  413.         <action name="SendToDesktop">
  414.           <to>next</to>
  415.         </action>
  416.       </mousebind>
  417.     </context>
  418.     <context name="Titlebar">
  419.       <mousebind button="Left" action="Drag">
  420.         <action name="Move"/>
  421.       </mousebind>
  422.       <mousebind button="Left" action="DoubleClick">
  423.         <action name="ToggleMaximize"/>
  424.       </mousebind>
  425.       <mousebind button="Up" action="Click">
  426.         <action name="if">
  427.           <shaded>no</shaded>
  428.           <then>
  429.             <action name="Shade"/>
  430.             <action name="FocusToBottom"/>
  431.             <action name="Unfocus"/>
  432.             <action name="Lower"/>
  433.           </then>
  434.         </action>
  435.       </mousebind>
  436.       <mousebind button="Down" action="Click">
  437.         <action name="if">
  438.           <shaded>yes</shaded>
  439.           <then>
  440.             <action name="Unshade"/>
  441.             <action name="Raise"/>
  442.           </then>
  443.         </action>
  444.       </mousebind>
  445.     </context>
  446.     <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  447.       <mousebind button="Left" action="Press">
  448.         <action name="Focus"/>
  449.         <action name="Raise"/>
  450.         <action name="Unshade"/>
  451.       </mousebind>
  452.       <mousebind button="Middle" action="Press">
  453.         <action name="Lower"/>
  454.         <action name="FocusToBottom"/>
  455.         <action name="Unfocus"/>
  456.       </mousebind>
  457.       <mousebind button="Right" action="Press">
  458.         <action name="Focus"/>
  459.         <action name="Raise"/>
  460.         <action name="ShowMenu">
  461.           <menu>client-menu</menu>
  462.         </action>
  463.       </mousebind>
  464.     </context>
  465.     <context name="Top">
  466.       <mousebind button="Left" action="Drag">
  467.         <action name="Resize">
  468.           <edge>top</edge>
  469.         </action>
  470.       </mousebind>
  471.     </context>
  472.     <context name="Left">
  473.       <mousebind button="Left" action="Drag">
  474.         <action name="Resize">
  475.           <edge>left</edge>
  476.         </action>
  477.       </mousebind>
  478.     </context>
  479.     <context name="Right">
  480.       <mousebind button="Left" action="Drag">
  481.         <action name="Resize">
  482.           <edge>right</edge>
  483.         </action>
  484.       </mousebind>
  485.     </context>
  486.     <context name="Bottom">
  487.       <mousebind button="Left" action="Drag">
  488.         <action name="Resize">
  489.           <edge>bottom</edge>
  490.         </action>
  491.       </mousebind>
  492.       <mousebind button="Right" action="Press">
  493.         <action name="Focus"/>
  494.         <action name="Raise"/>
  495.         <action name="ShowMenu">
  496.           <menu>client-menu</menu>
  497.         </action>
  498.       </mousebind>
  499.     </context>
  500.     <context name="TRCorner BRCorner TLCorner BLCorner">
  501.       <mousebind button="Left" action="Press">
  502.         <action name="Focus"/>
  503.         <action name="Raise"/>
  504.         <action name="Unshade"/>
  505.       </mousebind>
  506.       <mousebind button="Left" action="Drag">
  507.         <action name="Resize"/>
  508.       </mousebind>
  509.     </context>
  510.     <context name="Client">
  511.       <mousebind button="Left" action="Press">
  512.         <action name="Focus"/>
  513.         <action name="Raise"/>
  514.       </mousebind>
  515.       <mousebind button="Middle" action="Press">
  516.         <action name="Focus"/>
  517.         <action name="Raise"/>
  518.       </mousebind>
  519.       <mousebind button="Right" action="Press">
  520.         <action name="Focus"/>
  521.         <action name="Raise"/>
  522.       </mousebind>
  523.     </context>
  524.     <context name="Icon">
  525.       <mousebind button="Left" action="Press">
  526.         <action name="Focus"/>
  527.         <action name="Raise"/>
  528.         <action name="Unshade"/>
  529.         <action name="ShowMenu">
  530.           <menu>client-menu</menu>
  531.         </action>
  532.       </mousebind>
  533.       <mousebind button="Right" action="Press">
  534.         <action name="Focus"/>
  535.         <action name="Raise"/>
  536.         <action name="ShowMenu">
  537.           <menu>client-menu</menu>
  538.         </action>
  539.       </mousebind>
  540.     </context>
  541.     <context name="AllDesktops">
  542.       <mousebind button="Left" action="Press">
  543.         <action name="Focus"/>
  544.         <action name="Raise"/>
  545.         <action name="Unshade"/>
  546.       </mousebind>
  547.       <mousebind button="Left" action="Click">
  548.         <action name="ToggleOmnipresent"/>
  549.       </mousebind>
  550.     </context>
  551.     <context name="Shade">
  552.       <mousebind button="Left" action="Press">
  553.         <action name="Focus"/>
  554.         <action name="Raise"/>
  555.       </mousebind>
  556.       <mousebind button="Left" action="Click">
  557.         <action name="ToggleShade"/>
  558.       </mousebind>
  559.     </context>
  560.     <context name="Iconify">
  561.       <mousebind button="Left" action="Press">
  562.         <action name="Focus"/>
  563.         <action name="Raise"/>
  564.       </mousebind>
  565.       <mousebind button="Left" action="Click">
  566.         <action name="Iconify"/>
  567.       </mousebind>
  568.     </context>
  569.     <context name="Maximize">
  570.       <mousebind button="Left" action="Press">
  571.         <action name="Focus"/>
  572.         <action name="Raise"/>
  573.         <action name="Unshade"/>
  574.       </mousebind>
  575.       <mousebind button="Middle" action="Press">
  576.         <action name="Focus"/>
  577.         <action name="Raise"/>
  578.         <action name="Unshade"/>
  579.       </mousebind>
  580.       <mousebind button="Right" action="Press">
  581.         <action name="Focus"/>
  582.         <action name="Raise"/>
  583.         <action name="Unshade"/>
  584.       </mousebind>
  585.       <mousebind button="Left" action="Click">
  586.         <action name="ToggleMaximize"/>
  587.       </mousebind>
  588.       <mousebind button="Middle" action="Click">
  589.         <action name="ToggleMaximize">
  590.           <direction>vertical</direction>
  591.         </action>
  592.       </mousebind>
  593.       <mousebind button="Right" action="Click">
  594.         <action name="ToggleMaximize">
  595.           <direction>horizontal</direction>
  596.         </action>
  597.       </mousebind>
  598.     </context>
  599.     <context name="Close">
  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="Click">
  606.         <action name="Close"/>
  607.       </mousebind>
  608.     </context>
  609.     <context name="Desktop">
  610.       <mousebind button="Up" action="Click">
  611.         <action name="GoToDesktop">
  612.           <to>previous</to>
  613.         </action>
  614.       </mousebind>
  615.       <mousebind button="Down" action="Click">
  616.         <action name="GoToDesktop">
  617.           <to>next</to>
  618.         </action>
  619.       </mousebind>
  620.       <mousebind button="A-Up" action="Click">
  621.         <action name="GoToDesktop">
  622.           <to>previous</to>
  623.         </action>
  624.       </mousebind>
  625.       <mousebind button="A-Down" action="Click">
  626.         <action name="GoToDesktop">
  627.           <to>next</to>
  628.         </action>
  629.       </mousebind>
  630.       <mousebind button="C-A-Up" action="Click">
  631.         <action name="GoToDesktop">
  632.           <to>previous</to>
  633.         </action>
  634.       </mousebind>
  635.       <mousebind button="C-A-Down" action="Click">
  636.         <action name="GoToDesktop">
  637.           <to>next</to>
  638.         </action>
  639.       </mousebind>
  640.       <mousebind button="Left" action="Press">
  641.         <action name="Focus"/>
  642.         <action name="Raise"/>
  643.       </mousebind>
  644.       <mousebind button="Right" action="Press">
  645.         <action name="Focus"/>
  646.         <action name="Raise"/>
  647.       </mousebind>
  648.     </context>
  649.     <context name="Root">
  650.       <!-- Menus -->
  651.       <mousebind button="Middle" action="Press">
  652.         <action name="ShowMenu">
  653.           <menu>client-list-combined-menu</menu>
  654.         </action>
  655.       </mousebind>
  656.       <mousebind button="Right" action="Press">
  657.         <action name="ShowMenu">
  658.           <menu>root-menu</menu>
  659.         </action>
  660.       </mousebind>
  661.     </context>
  662.     <context name="MoveResize">
  663.       <mousebind button="Up" action="Click">
  664.         <action name="GoToDesktop">
  665.           <to>previous</to>
  666.         </action>
  667.       </mousebind>
  668.       <mousebind button="Down" action="Click">
  669.         <action name="GoToDesktop">
  670.           <to>next</to>
  671.         </action>
  672.       </mousebind>
  673.       <mousebind button="A-Up" action="Click">
  674.         <action name="GoToDesktop">
  675.           <to>previous</to>
  676.         </action>
  677.       </mousebind>
  678.       <mousebind button="A-Down" action="Click">
  679.         <action name="GoToDesktop">
  680.           <to>next</to>
  681.         </action>
  682.       </mousebind>
  683.     </context>
  684.   </mouse>
  685.   <menu>
  686.     <!-- You can specify more than one menu file in here and they are all loaded,
  687.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  688.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  689.     <file>menu.xml</file>
  690.     <hideDelay>200</hideDelay>
  691.     <!-- if a press-release lasts longer than this setting (in milliseconds), the
  692.       menu is hidden again -->
  693.     <middle>no</middle>
  694.     <!-- center submenus vertically about the parent entry -->
  695.     <submenuShowDelay>100</submenuShowDelay>
  696.     <!-- time to delay before showing a submenu after hovering over the parent
  697.       entry.
  698.       if this is a negative value, then the delay is infinite and the
  699.       submenu will not be shown until it is clicked on -->
  700.     <submenuHideDelay>400</submenuHideDelay>
  701.     <!-- time to delay before hiding a submenu when selecting another
  702.       entry in parent menu
  703.       if this is a negative value, then the delay is infinite and the
  704.       submenu will not be hidden until a different submenu is opened -->
  705.     <showIcons>yes</showIcons>
  706.     <!-- controls if icons appear in the client-list-(combined-)menu -->
  707.     <manageDesktops>yes</manageDesktops>
  708.     <!-- show the manage desktops section in the client-list-(combined-)menu -->
  709.   </menu>
  710.   <applications>
  711.     <!--
  712.  # this is an example with comments through out. use these to make your
  713.  # own rules, but without the comments of course.
  714.  # you may use one or more of the name/class/role/title/type rules to specify
  715.  # windows to match
  716.  
  717.  <application name="the window's _OB_APP_NAME property (see obxprop)"
  718.              class="the window's _OB_APP_CLASS property (see obxprop)"
  719.          groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  720.         groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  721.               role="the window's _OB_APP_ROLE property (see obxprop)"
  722.              title="the window's _OB_APP_TITLE property (see obxprop)"
  723.               type="the window's _OB_APP_TYPE property (see obxprob)..
  724.                      (if unspecified, then it is 'dialog' for child windows)">
  725.  # you may set only one of name/class/role/title/type, or you may use more
  726.  # than one together to restrict your matches.
  727.  
  728.  # the name, class, role, and title use simple wildcard matching such as those
  729.  # used by a shell. you can use * to match any characters and ? to match
  730.  # any single character.
  731.  
  732.  # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  733.  #    or desktop
  734.  
  735.  # when multiple rules match a window, they will all be applied, in the
  736.  # order that they appear in this list
  737.  
  738.  
  739.    # each rule element can be left out or set to 'default' to specify to not
  740.    # change that attribute of the window
  741.  
  742.    <decor>yes</decor>
  743.    # enable or disable window decorations
  744.  
  745.    <shade>no</shade>
  746.    # make the window shaded when it appears, or not
  747.  
  748.    <position force="no">
  749.      # the position is only used if both an x and y coordinate are provided
  750.      # (and not set to 'default')
  751.      # when force is "yes", then the window will be placed here even if it
  752.      # says you want it placed elsewhere.  this is to override buggy
  753.      # applications who refuse to behave
  754.      <x>center</x>
  755.      # a number like 50, or 'center' to center on screen. use a negative number
  756.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  757.      # the right edge (or bottom). use 'default' to specify using value
  758.      # provided by the application, or chosen by openbox, instead.
  759.      <y>200</y>
  760.      <monitor>1</monitor>
  761.      # specifies the monitor in a xinerama setup.
  762.      # 1 is the first head, or 'mouse' for wherever the mouse is
  763.    </position>
  764.  
  765.    <size>
  766.      # the size to make the window.
  767.      <width>20</width>
  768.      # a number like 20, or 'default' to use the size given by the application.
  769.      # you can use fractions such as 1/2 or percentages such as 75% in which
  770.      # case the value is relative to the size of the monitor that the window
  771.      # appears on.
  772.      <height>30%</height>
  773.    </size>
  774.  
  775.    <focus>yes</focus>
  776.    # if the window should try be given focus when it appears. if this is set
  777.    # to yes it doesn't guarantee the window will be given focus. some
  778.    # restrictions may apply, but Openbox will try to
  779.  
  780.    <desktop>1</desktop>
  781.    # 1 is the first desktop, 'all' for all desktops
  782.  
  783.    <layer>normal</layer>
  784.    # 'above', 'normal', or 'below'
  785.  
  786.    <iconic>no</iconic>
  787.    # make the window iconified when it appears, or not
  788.  
  789.    <skip_pager>no</skip_pager>
  790.    # asks to not be shown in pagers
  791.  
  792.    <skip_taskbar>no</skip_taskbar>
  793.    # asks to not be shown in taskbars. window cycling actions will also
  794.    # skip past such windows
  795.  
  796.    <fullscreen>yes</fullscreen>
  797.    # make the window in fullscreen mode when it appears
  798.  
  799.    <maximized>true</maximized>
  800.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  801.  </application>
  802.  
  803.  # end of the example
  804. -->
  805.   </applications>
  806. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment