Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 6th, 2012  |  syntax: XML  |  size: 24.96 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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>no</raiseOnFocus>
  22.     <!-- when followMouse is enabled, and a window is given focus by moving the
  23.       mouse into it, also raise the window -->
  24.   </focus>
  25.   <placement>
  26.     <policy>Smart</policy>
  27.     <!-- 'Smart' or 'UnderMouse' -->
  28.     <center>yes</center>
  29.     <!-- whether to place windows in the center of the free area found or
  30.       the top left corner -->
  31.     <monitor>Any</monitor>
  32.   </placement>
  33.   <theme>
  34.     <name>Dyne-Dark</name>
  35.     <titleLayout>DSLIMC</titleLayout>
  36.     <!--
  37.      avaible characters are NDSLIMC, each can occur at most once.
  38.      N: window icon
  39.      L: window label (AKA title).
  40.      I: iconify
  41.      M: maximize
  42.      C: close
  43.      S: shade (roll up/down)
  44.      D: omnipresent (on all desktops).
  45.  -->
  46.     <keepBorder>yes</keepBorder>
  47.     <animateIconify>yes</animateIconify>
  48.     <font place="ActiveWindow">
  49.       <name>Sans</name>
  50.       <size>9</size>
  51.       <!-- font size in points -->
  52.       <weight>normal</weight>
  53.       <!-- 'bold' or 'normal' -->
  54.       <slant>normal</slant>
  55.       <!-- 'italic' or 'normal' -->
  56.     </font>
  57.     <font place="InactiveWindow">
  58.       <name>Sans</name>
  59.       <size>9</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="MenuHeader">
  67.       <name>Sans</name>
  68.       <size>9</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="MenuItem">
  76.       <name>Sans</name>
  77.       <size>9</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="OnScreenDisplay">
  85.       <name>Sans</name>
  86.       <size>9</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.   </theme>
  94.   <desktops>
  95.     <!-- this stuff is only used at startup, pagers allow you to change them
  96.       during a session
  97.  
  98.       these are default values to use when other ones are not already set
  99.       by other applications, or saved in your session
  100.  
  101.       use obconf if you want to change these without having to log out
  102.       and back in -->
  103.     <number>3</number>
  104.     <firstdesk>1</firstdesk>
  105.     <names>
  106.       <name>1</name>
  107.       <name>2</name>
  108.       <name>3</name>
  109.       <name>4</name>
  110.     </names>
  111.     <popupTime>875</popupTime>
  112.     <!-- The number of milliseconds to show the popup for when switching
  113.       desktops.  Set this to 0 to disable the popup. -->
  114.   </desktops>
  115.   <resize>
  116.     <drawContents>yes</drawContents>
  117.     <popupShow>Nonpixel</popupShow>
  118.     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  119.     <popupPosition>Center</popupPosition>
  120.     <!-- 'Center' or 'Top' -->
  121.     <popupFixedPosition>
  122.       <x>0</x>
  123.       <y>0</y>
  124.     </popupFixedPosition>
  125.   </resize>
  126.   <!-- You can reserve a portion of your screen where windows will not cover when
  127.     they are maximized, or when they are initially placed.
  128.     Many programs reserve space automatically, but you can use this in other
  129.     cases. -->
  130.   <margins>
  131.     <top>1</top>
  132.     <bottom>0</bottom>
  133.     <left>0</left>
  134.     <right>0</right>
  135.   </margins>
  136.   <dock>
  137.     <position>TopLeft</position>
  138.     <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  139.     <floatingX>0</floatingX>
  140.     <floatingY>0</floatingY>
  141.     <noStrut>no</noStrut>
  142.     <stacking>Above</stacking>
  143.     <!-- 'Above', 'Normal', or 'Below' -->
  144.     <direction>Vertical</direction>
  145.     <!-- 'Vertical' or 'Horizontal' -->
  146.     <autoHide>no</autoHide>
  147.     <hideDelay>300</hideDelay>
  148.     <!-- in milliseconds (1000 = 1 second) -->
  149.     <showDelay>300</showDelay>
  150.     <!-- in milliseconds (1000 = 1 second) -->
  151.     <moveButton>Middle</moveButton>
  152.     <!-- 'Left', 'Middle', 'Right' -->
  153.   </dock>
  154.   <keyboard>
  155.     <chainQuitKey>C-g</chainQuitKey>
  156.     <!-- Keybindings for desktop switching -->
  157.     <keybind key="C-A-Left">
  158.       <action name="DesktopLeft">
  159.         <dialog>no</dialog>
  160.         <wrap>no</wrap>
  161.       </action>
  162.     </keybind>
  163.     <keybind key="C-A-Right">
  164.       <action name="DesktopRight">
  165.         <dialog>no</dialog>
  166.         <wrap>no</wrap>
  167.       </action>
  168.     </keybind>
  169.     <keybind key="C-A-Up">
  170.       <action name="DesktopUp">
  171.         <dialog>no</dialog>
  172.         <wrap>no</wrap>
  173.       </action>
  174.     </keybind>
  175.     <keybind key="C-A-Down">
  176.       <action name="DesktopDown">
  177.         <dialog>no</dialog>
  178.         <wrap>no</wrap>
  179.       </action>
  180.     </keybind>
  181.     <keybind key="S-A-Left">
  182.       <action name="SendToDesktopLeft">
  183.         <dialog>no</dialog>
  184.         <wrap>no</wrap>
  185.       </action>
  186.     </keybind>
  187.     <keybind key="S-A-Right">
  188.       <action name="SendToDesktopRight">
  189.         <dialog>no</dialog>
  190.         <wrap>no</wrap>
  191.       </action>
  192.     </keybind>
  193.     <keybind key="S-A-Up">
  194.       <action name="SendToDesktopUp">
  195.         <dialog>no</dialog>
  196.         <wrap>no</wrap>
  197.       </action>
  198.     </keybind>
  199.     <keybind key="S-A-Down">
  200.       <action name="SendToDesktopDown">
  201.         <dialog>no</dialog>
  202.         <wrap>no</wrap>
  203.       </action>
  204.     </keybind>
  205.     <keybind key="W-F1">
  206.       <action name="Desktop">
  207.         <desktop>1</desktop>
  208.       </action>
  209.     </keybind>
  210.     <keybind key="W-F2">
  211.       <action name="Desktop">
  212.         <desktop>2</desktop>
  213.       </action>
  214.     </keybind>
  215.     <keybind key="W-F3">
  216.       <action name="Desktop">
  217.         <desktop>3</desktop>
  218.       </action>
  219.     </keybind>
  220.     <keybind key="W-F4">
  221.       <action name="Desktop">
  222.         <desktop>4</desktop>
  223.       </action>
  224.     </keybind>
  225.     <keybind key="W-d">
  226.       <action name="ToggleShowDesktop"/>
  227.     </keybind>
  228.     <!-- Keybindings for windows -->
  229.     <keybind key="A-F4">
  230.       <action name="Close"/>
  231.     </keybind>
  232.     <keybind key="A-Escape">
  233.       <action name="Lower"/>
  234.       <action name="FocusToBottom"/>
  235.       <action name="Unfocus"/>
  236.     </keybind>
  237.     <keybind key="A-space">
  238.       <action name="ShowMenu">
  239.         <menu>client-menu</menu>
  240.       </action>
  241.     </keybind>
  242.     <keybind key="Print">
  243.       <action name="Execute">
  244.         <execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ &amp; viewnior ~/images/$f'</execute>
  245.       </action>
  246.     </keybind>
  247.     <keybind key="A-Print">
  248.       <action name="Execute">
  249.         <execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ &amp; viewnior ~/images/$f'</execute>
  250.       </action>
  251.     </keybind>
  252.     <!-- Keybindings for window switching -->
  253.     <keybind key="A-Tab">
  254.       <action name="NextWindow"/>
  255.     </keybind>
  256.     <keybind key="A-S-Tab">
  257.       <action name="PreviousWindow"/>
  258.     </keybind>
  259.     <keybind key="C-A-Tab">
  260.       <action name="NextWindow">
  261.         <panels>yes</panels>
  262.         <desktop>yes</desktop>
  263.       </action>
  264.     </keybind>
  265.     <!-- Keybindings for running applications -->
  266.     <keybind key="A-F2">
  267.       <action name="Execute">
  268.         <startupnotify>
  269.           <enabled>true</enabled>
  270.           <name>Run Program</name>
  271.         </startupnotify>
  272.         <command>gmrun</command>
  273.       </action>
  274.     </keybind>
  275.     <keybind key="A-F3">
  276.       <action name="Execute">
  277.         <startupnotify>
  278.           <enabled>true</enabled>
  279.           <name>dmenu-bind</name>
  280.         </startupnotify>
  281.         <command>~/.config/dmenu/dmenu-bind.sh</command>
  282.       </action>
  283.     </keybind>
  284.     <keybind key="W-f">
  285.       <action name="Execute">
  286.         <startupnotify>
  287.           <enabled>true</enabled>
  288.           <name>thunar</name>
  289.         </startupnotify>
  290.         <command>thunar</command>
  291.       </action>
  292.     </keybind>
  293.     <keybind key="W-t">
  294.       <action name="Execute">
  295.         <startupnotify>
  296.           <enabled>true</enabled>
  297.           <name>Terminal</name>
  298.         </startupnotify>
  299.         <command>terminator</command>
  300.       </action>
  301.     </keybind>
  302.     <keybind key="W-w">
  303.       <action name="Execute">
  304.         <startupnotify>
  305.           <enabled>true</enabled>
  306.           <name>Web Browser</name>
  307.         </startupnotify>
  308.         <command>x-www-browser</command>
  309.       </action>
  310.     </keybind>
  311.     <keybind key="W-l">
  312.       <action name="Execute">
  313.         <startupnotify>
  314.           <enabled>true</enabled>
  315.           <name>Lock screen</name>
  316.         </startupnotify>
  317.         <command>cb-lock</command>
  318.       </action>
  319.     </keybind>
  320.     <keybind key="W-e">
  321.       <action name="Execute">
  322.         <startupnotify>
  323.           <enabled>true</enabled>
  324.           <name>Editor</name>
  325.         </startupnotify>
  326.         <command>gedit</command>
  327.       </action>
  328.     </keybind>
  329.     <keybind key="W-m">
  330.       <action name="Execute">
  331.         <startupnotify>
  332.           <enabled>true</enabled>
  333.           <name>Mediaplayer</name>
  334.         </startupnotify>
  335.         <command>vlc</command>
  336.       </action>
  337.     </keybind>
  338.     <keybind key="W-v">
  339.       <action name="Execute">
  340.         <startupnotify>
  341.           <enabled>true</enabled>
  342.           <name>Volume</name>
  343.         </startupnotify>
  344.         <command>xfce4-mixer</command>
  345.       </action>
  346.     </keybind>
  347.     <keybind key="W-x">
  348.       <action name="Execute">
  349.         <startupnotify>
  350.           <enabled>true</enabled>
  351.           <name>Logout</name>
  352.         </startupnotify>
  353.         <command>openbox-logout</command>
  354.       </action>
  355.     </keybind>
  356.     <keybind key="W-Tab">
  357.       <action name="ShowMenu">
  358.         <menu>client-list-combined-menu</menu>
  359.       </action>
  360.     </keybind>
  361.     <keybind key="W-space">
  362.       <action name="ShowMenu">
  363.         <menu>root-menu</menu>
  364.       </action>
  365.     </keybind>
  366.     <keybind key="A-C-q">
  367.       <action name="ShowMenu">
  368.         <menu>root-menu</menu>
  369.       </action>
  370.     </keybind>
  371.   </keyboard>
  372.   <mouse>
  373.     <dragThreshold>8</dragThreshold>
  374.     <!-- number of pixels the mouse must move before a drag begins -->
  375.     <doubleClickTime>200</doubleClickTime>
  376.     <!-- in milliseconds (1000 = 1 second) -->
  377.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  378.     <!-- Time before changing desktops when the pointer touches the edge of the
  379.       screen while moving a window, in milliseconds (1000 = 1 second).
  380.       Set this to 0 to disable warping -->
  381.     <context name="Frame">
  382.       <mousebind button="A-Left" action="Press">
  383.         <action name="Focus"/>
  384.         <action name="Raise"/>
  385.       </mousebind>
  386.       <mousebind button="A-Left" action="Click">
  387.         <action name="Unshade"/>
  388.       </mousebind>
  389.       <mousebind button="A-Left" action="Drag">
  390.         <action name="Move"/>
  391.       </mousebind>
  392.       <mousebind button="A-Right" action="Press">
  393.         <action name="Focus"/>
  394.         <action name="Raise"/>
  395.         <action name="Unshade"/>
  396.       </mousebind>
  397.       <mousebind button="A-Right" action="Drag">
  398.         <action name="Resize"/>
  399.       </mousebind>
  400.       <mousebind button="A-Middle" action="Press">
  401.         <action name="Lower"/>
  402.         <action name="FocusToBottom"/>
  403.         <action name="Unfocus"/>
  404.       </mousebind>
  405.       <mousebind button="A-Up" action="Click">
  406.         <action name="DesktopPrevious"/>
  407.       </mousebind>
  408.       <mousebind button="A-Down" action="Click">
  409.         <action name="DesktopNext"/>
  410.       </mousebind>
  411.       <mousebind button="C-A-Up" action="Click">
  412.         <action name="DesktopPrevious"/>
  413.       </mousebind>
  414.       <mousebind button="C-A-Down" action="Click">
  415.         <action name="DesktopNext"/>
  416.       </mousebind>
  417.       <mousebind button="A-S-Up" action="Click">
  418.         <action name="SendToDesktopPrevious"/>
  419.       </mousebind>
  420.       <mousebind button="A-S-Down" action="Click">
  421.         <action name="SendToDesktopNext"/>
  422.       </mousebind>
  423.     </context>
  424.     <context name="Titlebar">
  425.       <mousebind button="Left" action="Press">
  426.         <action name="Focus"/>
  427.         <action name="Raise"/>
  428.       </mousebind>
  429.       <mousebind button="Left" action="Drag">
  430.         <action name="Move"/>
  431.       </mousebind>
  432.       <mousebind button="Left" action="DoubleClick">
  433.         <action name="ToggleMaximizeFull"/>
  434.       </mousebind>
  435.       <mousebind button="Middle" action="Press">
  436.         <action name="Lower"/>
  437.         <action name="FocusToBottom"/>
  438.         <action name="Unfocus"/>
  439.       </mousebind>
  440.       <mousebind button="Up" action="Click">
  441.         <action name="Shade"/>
  442.         <action name="FocusToBottom"/>
  443.         <action name="Unfocus"/>
  444.         <action name="Lower"/>
  445.       </mousebind>
  446.       <mousebind button="Down" action="Click">
  447.         <action name="Unshade"/>
  448.         <action name="Raise"/>
  449.       </mousebind>
  450.       <mousebind button="Right" action="Press">
  451.         <action name="Focus"/>
  452.         <action name="Raise"/>
  453.         <action name="ShowMenu">
  454.           <menu>client-menu</menu>
  455.         </action>
  456.       </mousebind>
  457.     </context>
  458.     <context name="Top">
  459.       <mousebind button="Left" action="Press">
  460.         <action name="Focus"/>
  461.         <action name="Raise"/>
  462.         <action name="Unshade"/>
  463.       </mousebind>
  464.       <mousebind button="Left" action="Drag">
  465.         <action name="Resize">
  466.           <edge>top</edge>
  467.         </action>
  468.       </mousebind>
  469.     </context>
  470.     <context name="Left">
  471.       <mousebind button="Left" action="Press">
  472.         <action name="Focus"/>
  473.         <action name="Raise"/>
  474.       </mousebind>
  475.       <mousebind button="Left" action="Drag">
  476.         <action name="Resize">
  477.           <edge>left</edge>
  478.         </action>
  479.       </mousebind>
  480.     </context>
  481.     <context name="Right">
  482.       <mousebind button="Left" action="Press">
  483.         <action name="Focus"/>
  484.         <action name="Raise"/>
  485.       </mousebind>
  486.       <mousebind button="Left" action="Drag">
  487.         <action name="Resize">
  488.           <edge>right</edge>
  489.         </action>
  490.       </mousebind>
  491.     </context>
  492.     <context name="Bottom">
  493.       <mousebind button="Left" action="Press">
  494.         <action name="Focus"/>
  495.         <action name="Raise"/>
  496.       </mousebind>
  497.       <mousebind button="Left" action="Drag">
  498.         <action name="Resize">
  499.           <edge>bottom</edge>
  500.         </action>
  501.       </mousebind>
  502.       <mousebind button="Middle" action="Press">
  503.         <action name="Lower"/>
  504.         <action name="FocusToBottom"/>
  505.         <action name="Unfocus"/>
  506.       </mousebind>
  507.       <mousebind button="Right" action="Press">
  508.         <action name="Focus"/>
  509.         <action name="Raise"/>
  510.         <action name="ShowMenu">
  511.           <menu>client-menu</menu>
  512.         </action>
  513.       </mousebind>
  514.     </context>
  515.     <context name="BLCorner">
  516.       <mousebind button="Left" action="Press">
  517.         <action name="Focus"/>
  518.         <action name="Raise"/>
  519.       </mousebind>
  520.       <mousebind button="Left" action="Drag">
  521.         <action name="Resize"/>
  522.       </mousebind>
  523.     </context>
  524.     <context name="BRCorner">
  525.       <mousebind button="Left" action="Press">
  526.         <action name="Focus"/>
  527.         <action name="Raise"/>
  528.       </mousebind>
  529.       <mousebind button="Left" action="Drag">
  530.         <action name="Resize"/>
  531.       </mousebind>
  532.     </context>
  533.     <context name="TLCorner">
  534.       <mousebind button="Left" action="Press">
  535.         <action name="Focus"/>
  536.         <action name="Raise"/>
  537.         <action name="Unshade"/>
  538.       </mousebind>
  539.       <mousebind button="Left" action="Drag">
  540.         <action name="Resize"/>
  541.       </mousebind>
  542.     </context>
  543.     <context name="TRCorner">
  544.       <mousebind button="Left" action="Press">
  545.         <action name="Focus"/>
  546.         <action name="Raise"/>
  547.         <action name="Unshade"/>
  548.       </mousebind>
  549.       <mousebind button="Left" action="Drag">
  550.         <action name="Resize"/>
  551.       </mousebind>
  552.     </context>
  553.     <context name="Client">
  554.       <mousebind button="Left" action="Press">
  555.         <action name="Focus"/>
  556.         <action name="Raise"/>
  557.       </mousebind>
  558.       <mousebind button="Middle" action="Press">
  559.         <action name="Focus"/>
  560.         <action name="Raise"/>
  561.       </mousebind>
  562.       <mousebind button="Right" action="Press">
  563.         <action name="Focus"/>
  564.         <action name="Raise"/>
  565.       </mousebind>
  566.     </context>
  567.     <context name="Icon">
  568.       <mousebind button="Left" action="Press">
  569.         <action name="Focus"/>
  570.         <action name="Raise"/>
  571.         <action name="Unshade"/>
  572.         <action name="ShowMenu">
  573.           <menu>client-menu</menu>
  574.         </action>
  575.       </mousebind>
  576.       <mousebind button="Right" action="Press">
  577.         <action name="Focus"/>
  578.         <action name="Raise"/>
  579.         <action name="ShowMenu">
  580.           <menu>client-menu</menu>
  581.         </action>
  582.       </mousebind>
  583.     </context>
  584.     <context name="AllDesktops">
  585.       <mousebind button="Left" action="Press">
  586.         <action name="Focus"/>
  587.         <action name="Raise"/>
  588.         <action name="Unshade"/>
  589.       </mousebind>
  590.       <mousebind button="Left" action="Click">
  591.         <action name="ToggleOmnipresent"/>
  592.       </mousebind>
  593.     </context>
  594.     <context name="Shade">
  595.       <mousebind button="Left" action="Press">
  596.         <action name="Focus"/>
  597.         <action name="Raise"/>
  598.       </mousebind>
  599.       <mousebind button="Left" action="Click">
  600.         <action name="ToggleShade"/>
  601.       </mousebind>
  602.     </context>
  603.     <context name="Iconify">
  604.       <mousebind button="Left" action="Press">
  605.         <action name="Focus"/>
  606.         <action name="Raise"/>
  607.       </mousebind>
  608.       <mousebind button="Left" action="Click">
  609.         <action name="Iconify"/>
  610.       </mousebind>
  611.     </context>
  612.     <context name="Maximize">
  613.       <mousebind button="Left" action="Press">
  614.         <action name="Focus"/>
  615.         <action name="Raise"/>
  616.         <action name="Unshade"/>
  617.       </mousebind>
  618.       <mousebind button="Middle" action="Press">
  619.         <action name="Focus"/>
  620.         <action name="Raise"/>
  621.         <action name="Unshade"/>
  622.       </mousebind>
  623.       <mousebind button="Right" action="Press">
  624.         <action name="Focus"/>
  625.         <action name="Raise"/>
  626.         <action name="Unshade"/>
  627.       </mousebind>
  628.       <mousebind button="Left" action="Click">
  629.         <action name="ToggleMaximizeFull"/>
  630.       </mousebind>
  631.       <mousebind button="Middle" action="Click">
  632.         <action name="ToggleMaximizeVert"/>
  633.       </mousebind>
  634.       <mousebind button="Right" action="Click">
  635.         <action name="ToggleMaximizeHorz"/>
  636.       </mousebind>
  637.     </context>
  638.     <context name="Close">
  639.       <mousebind button="Left" action="Press">
  640.         <action name="Focus"/>
  641.         <action name="Raise"/>
  642.         <action name="Unshade"/>
  643.       </mousebind>
  644.       <mousebind button="Left" action="Click">
  645.         <action name="Close"/>
  646.       </mousebind>
  647.     </context>
  648.     <context name="Desktop">
  649.       <mousebind button="Up" action="Click">
  650.         <action name="DesktopPrevious"/>
  651.       </mousebind>
  652.       <mousebind button="Down" action="Click">
  653.         <action name="DesktopNext"/>
  654.       </mousebind>
  655.       <mousebind button="A-Up" action="Click">
  656.         <action name="DesktopPrevious"/>
  657.       </mousebind>
  658.       <mousebind button="A-Down" action="Click">
  659.         <action name="DesktopNext"/>
  660.       </mousebind>
  661.       <mousebind button="C-A-Up" action="Click">
  662.         <action name="DesktopPrevious"/>
  663.       </mousebind>
  664.       <mousebind button="C-A-Down" action="Click">
  665.         <action name="DesktopNext"/>
  666.       </mousebind>
  667.       <mousebind button="Left" action="Press">
  668.         <action name="Focus"/>
  669.         <action name="Raise"/>
  670.       </mousebind>
  671.     </context>
  672.     <context name="Root">
  673.       <!-- Menus -->
  674.       <mousebind button="Middle" action="Press">
  675.         <action name="ShowMenu">
  676.           <menu>client-list-combined-menu</menu>
  677.         </action>
  678.       </mousebind>
  679.       <mousebind button="Right" action="Press">
  680.         <action name="ShowMenu">
  681.           <menu>root-menu</menu>
  682.         </action>
  683.       </mousebind>
  684.     </context>
  685.     <context name="MoveResize">
  686.       <mousebind button="Up" action="Click">
  687.         <action name="DesktopPrevious"/>
  688.       </mousebind>
  689.       <mousebind button="Down" action="Click">
  690.         <action name="DesktopNext"/>
  691.       </mousebind>
  692.       <mousebind button="A-Up" action="Click">
  693.         <action name="DesktopPrevious"/>
  694.       </mousebind>
  695.       <mousebind button="A-Down" action="Click">
  696.         <action name="DesktopNext"/>
  697.       </mousebind>
  698.     </context>
  699.   </mouse>
  700.   <menu>
  701.     <!-- You can specify more than one menu file in here and they are all loaded,
  702.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  703.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  704.     <!-- system menu files on Debian systems
  705.    <file>/var/lib/openbox/debian-menu.xml</file>
  706.    <file>debian-menu.xml</file> -->
  707.     <file>menu.xml</file>
  708.     <hideDelay>200</hideDelay>
  709.     <middle>no</middle>
  710.     <submenuShowDelay>100</submenuShowDelay>
  711.     <applicationIcons>yes</applicationIcons>
  712.   </menu>
  713.   <applications>
  714.     <!--
  715.  # this is an example with comments through out. use these to make your
  716.  # own rules, but without the comments of course.
  717.  
  718.  <application name="first element of window's WM_CLASS property (see xprop)"
  719.              class="second element of window's WM_CLASS property (see xprop)"
  720.               role="the window's WM_WINDOW_ROLE property (see xprop)">
  721.  # the name or the class can be set, or both. this is used to match
  722.  # windows when they appear. role can optionally be set as well, to
  723.  # further restrict your matches.
  724.  
  725.  # the name, class, and role use simple wildcard matching such as those
  726.  # used by a shell. you can use * to match any characters and ? to match
  727.  # any single character.
  728.  
  729.  # when multiple rules match a window, they will all be applied, in the
  730.  # order that they appear in this list
  731.  
  732.  
  733.    # each element can be left out or set to 'default' to specify to not
  734.    # change that attribute of the window
  735.  
  736.    <decor>yes</decor>
  737.    # enable or disable window decorations
  738.  
  739.    <shade>no</shade>
  740.    # make the window shaded when it appears, or not
  741.  
  742.    <position>
  743.      # the position is only used if both an x and y coordinate are provided
  744.      # (and not set to 'default')
  745.      <x>center</x>
  746.      # a number like 50, or 'center' to center on screen. use a negative number
  747.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  748.      # right edge (or bottom).
  749.      <y>200</y>
  750.      <monitor>1</monitor>
  751.      # specifies the monitor in a xinerama setup.
  752.      # 1 is the first head, or 'mouse' for wherever the mouse is
  753.    </position>
  754.  
  755.    <focus>yes</focus>
  756.    # if the window should try be given focus when it appears. if this is set
  757.    # to yes it doesn't guarantee the window will be given focus. some
  758.    # restrictions may apply, but Openbox will try to
  759.  
  760.    <desktop>1</desktop>
  761.    # 1 is the first desktop, 'all' for all desktops
  762.  
  763.    <layer>normal</layer>
  764.    # 'above', 'normal', or 'below'
  765.  
  766.    <iconic>no</iconic>
  767.    # make the window iconified when it appears, or not
  768.  
  769.    <skip_pager>no</skip_pager>
  770.    # asks to not be shown in pagers
  771.  
  772.    <skip_taskbar>no</skip_taskbar>
  773.    # asks to not be shown in taskbars. window cycling actions will also
  774.    # skip past such windows
  775.  
  776.    <fullscreen>yes</fullscreen>
  777.    # make the window in fullscreen mode when it appears
  778.  
  779.    <maximized>true</maximized>
  780.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  781.  </application>
  782.  
  783.  # end of the example
  784. -->
  785.     <application name="gmessage">
  786.       <decor>no</decor>
  787.       <shade>no</shade>
  788.       <skip_pager>yes</skip_pager>
  789.       <skip_taskbar>yes</skip_taskbar>
  790.       <fullscreen>no</fullscreen>
  791.       <maximized>no</maximized>
  792.     </application>
  793.     <application name="openbox-logout">
  794.       <decor>no</decor>
  795.       <shade>no</shade>
  796.       <skip_pager>yes</skip_pager>
  797.       <fullscreen>no</fullscreen>
  798.       <maximized>no</maximized>
  799.       <layer>above</layer>
  800.     </application>
  801.   </applications>
  802. </openbox_config>
clone this paste RAW Paste Data