Advertisement
kbmonkey

openbox rc.xml

Jun 4th, 2011
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 26.17 KB | None | 0 0
  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>xfzen green</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>Fu Hwo Bu</name>
  107.       <name>Chi Lin Bu</name>
  108.       <name>taijutsu</name>
  109.       <name>kuchiyose</name>
  110.     </names>
  111.     <popupTime>0</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>Always</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>0</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.     <!-- ##### start wes's own -->
  230.     <!-- music player and its media keys -->
  231.     <keybind key="Cancel">
  232.       <action name="Execute">
  233.         <command>terminator -x mocp</command>
  234.       </action>
  235.     </keybind>
  236.     <keybind key="XF86AudioPlay">
  237.       <action name="Execute">
  238.         <command>mocp --toggle-pause</command>
  239.       </action>
  240.     </keybind>
  241.     <keybind key="XF86AudioStop">
  242.       <action name="Execute">
  243.         <command>mocp --stop</command>
  244.       </action>
  245.     </keybind>
  246.     <keybind key="XF86Back">
  247.       <action name="Execute">
  248.         <command>mocp --previous</command>
  249.       </action>
  250.     </keybind>
  251.     <keybind key="XF86Forward">
  252.       <action name="Execute">
  253.         <command>mocp --next</command>
  254.       </action>
  255.     </keybind>
  256.     <!-- windows -->
  257.     <keybind key="A-F9">
  258.       <action name="Iconify"/>
  259.     </keybind>
  260.     <keybind key="A-F10">
  261.       <action name="ToggleMaximizeFull"/>
  262.     </keybind>
  263.     <keybind key="A-F10">
  264.       <action name="ToggleMaximizeFull"/>
  265.     </keybind>
  266.     <keybind key="A-F12">
  267.       <action name="ToggleOmnipresent"/>
  268.     </keybind>
  269.     <!-- ##### end wes's own -->
  270.     <keybind key="A-F4">
  271.       <action name="Close"/>
  272.     </keybind>
  273.     <keybind key="A-Escape">
  274.       <action name="Lower"/>
  275.       <action name="FocusToBottom"/>
  276.       <action name="Unfocus"/>
  277.     </keybind>
  278.     <keybind key="A-space">
  279.       <action name="ShowMenu">
  280.         <menu>client-menu</menu>
  281.       </action>
  282.     </keybind>
  283.     <keybind key="Print">
  284.       <action name="Execute">
  285.         <execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrot/ &amp; viewnior ~/images/scrot/$f'</execute>
  286.       </action>
  287.     </keybind>
  288.     <keybind key="A-Print">
  289.       <action name="Execute">
  290.         <execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrot/ &amp; viewnior ~/images/scrot/$f'</execute>
  291.       </action>
  292.     </keybind>
  293.     <!-- Keybindings for window switching -->
  294.     <keybind key="A-Tab">
  295.       <action name="NextWindow"/>
  296.     </keybind>
  297.     <keybind key="A-S-Tab">
  298.       <action name="PreviousWindow"/>
  299.     </keybind>
  300.     <keybind key="C-A-Tab">
  301.       <action name="NextWindow">
  302.         <panels>yes</panels>
  303.         <desktop>yes</desktop>
  304.       </action>
  305.     </keybind>
  306.     <!-- Keybindings for running applications -->
  307.     <keybind key="A-F2">
  308.       <action name="Execute">
  309.         <startupnotify>
  310.           <enabled>true</enabled>
  311.           <name>Run Program</name>
  312.         </startupnotify>
  313.         <command>gmrun</command>
  314.       </action>
  315.     </keybind>
  316.     <keybind key="A-F3">
  317.       <action name="Execute">
  318.         <startupnotify>
  319.           <enabled>true</enabled>
  320.           <name>dmenu-bind</name>
  321.         </startupnotify>
  322.         <command>~/.config/dmenu/dmenu-bind.sh</command>
  323.       </action>
  324.     </keybind>
  325.     <keybind key="W-f">
  326.       <action name="Execute">
  327.         <startupnotify>
  328.           <enabled>true</enabled>
  329.           <name>thunar</name>
  330.         </startupnotify>
  331.         <command>thunar</command>
  332.       </action>
  333.     </keybind>
  334.     <keybind key="W-t">
  335.       <action name="Execute">
  336.         <startupnotify>
  337.           <enabled>true</enabled>
  338.           <name>Terminal</name>
  339.         </startupnotify>
  340.         <command>terminator</command>
  341.       </action>
  342.     </keybind>
  343.     <keybind key="W-w">
  344.       <action name="Execute">
  345.         <startupnotify>
  346.           <enabled>true</enabled>
  347.           <name>Web Browser</name>
  348.         </startupnotify>
  349.         <command>x-www-browser</command>
  350.       </action>
  351.     </keybind>
  352.     <keybind key="W-l">
  353.       <action name="Execute">
  354.         <startupnotify>
  355.           <enabled>true</enabled>
  356.           <name>Lock screen</name>
  357.         </startupnotify>
  358.         <command>cb-lock</command>
  359.       </action>
  360.     </keybind>
  361.     <keybind key="W-e">
  362.       <action name="Execute">
  363.         <startupnotify>
  364.           <enabled>true</enabled>
  365.           <name>Editor</name>
  366.         </startupnotify>
  367.         <command>gedit</command>
  368.       </action>
  369.     </keybind>
  370.     <keybind key="W-m">
  371.       <action name="Execute">
  372.         <startupnotify>
  373.           <enabled>true</enabled>
  374.           <name>Mediaplayer</name>
  375.         </startupnotify>
  376.         <command>vlc</command>
  377.       </action>
  378.     </keybind>
  379.     <keybind key="W-v">
  380.       <action name="Execute">
  381.         <startupnotify>
  382.           <enabled>true</enabled>
  383.           <name>Volume</name>
  384.         </startupnotify>
  385.         <command>terminator -x alsamixer</command>
  386.       </action>
  387.     </keybind>
  388.     <keybind key="W-x">
  389.       <action name="Execute">
  390.         <startupnotify>
  391.           <enabled>true</enabled>
  392.           <name>Logout</name>
  393.         </startupnotify>
  394.         <command>openbox-logout</command>
  395.       </action>
  396.     </keybind>
  397.     <keybind key="W-Tab">
  398.       <action name="ShowMenu">
  399.         <menu>client-list-combined-menu</menu>
  400.       </action>
  401.     </keybind>
  402.     <keybind key="W-space">
  403.       <action name="ShowMenu">
  404.         <menu>root-menu</menu>
  405.       </action>
  406.     </keybind>
  407.     <keybind key="A-C-q">
  408.       <action name="ShowMenu">
  409.         <menu>root-menu</menu>
  410.       </action>
  411.     </keybind>
  412.   </keyboard>
  413.   <mouse>
  414.     <dragThreshold>8</dragThreshold>
  415.     <!-- number of pixels the mouse must
  416.    move before a drag begins -->
  417.     <doubleClickTime>200</doubleClickTime>
  418.     <!-- in milliseconds (1000 = 1 second) -->
  419.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  420.     <!-- Time before changing desktops when the pointer touches the edge of the
  421.       screen while moving a window, in milliseconds (1000 = 1 second).
  422.       Set this to 0 to disable warping -->
  423.     <context name="Frame">
  424.       <mousebind button="A-Left" action="Press">
  425.         <action name="Focus"/>
  426.         <action name="Raise"/>
  427.       </mousebind>
  428.       <mousebind button="A-Left" action="Click">
  429.         <action name="Unshade"/>
  430.       </mousebind>
  431.       <mousebind button="A-Left" action="Drag">
  432.         <action name="Move"/>
  433.       </mousebind>
  434.       <mousebind button="A-Right" action="Press">
  435.         <action name="Focus"/>
  436.         <action name="Raise"/>
  437.         <action name="Unshade"/>
  438.       </mousebind>
  439.       <mousebind button="A-Right" action="Drag">
  440.         <action name="Resize"/>
  441.       </mousebind>
  442.       <mousebind button="A-Middle" action="Press">
  443.         <action name="Lower"/>
  444.         <action name="FocusToBottom"/>
  445.         <action name="Unfocus"/>
  446.       </mousebind>
  447.       <mousebind button="A-Up" action="Click">
  448.         <action name="DesktopPrevious"/>
  449.       </mousebind>
  450.       <mousebind button="A-Down" action="Click">
  451.         <action name="DesktopNext"/>
  452.       </mousebind>
  453.       <mousebind button="C-A-Up" action="Click">
  454.         <action name="DesktopPrevious"/>
  455.       </mousebind>
  456.       <mousebind button="C-A-Down" action="Click">
  457.         <action name="DesktopNext"/>
  458.       </mousebind>
  459.       <mousebind button="A-S-Up" action="Click">
  460.         <action name="SendToDesktopPrevious"/>
  461.       </mousebind>
  462.       <mousebind button="A-S-Down" action="Click">
  463.         <action name="SendToDesktopNext"/>
  464.       </mousebind>
  465.     </context>
  466.     <context name="Titlebar">
  467.       <mousebind button="Left" action="Press">
  468.         <action name="Focus"/>
  469.         <action name="Raise"/>
  470.       </mousebind>
  471.       <mousebind button="Left" action="Drag">
  472.         <action name="Move"/>
  473.       </mousebind>
  474.       <mousebind button="Left" action="DoubleClick">
  475.         <action name="ToggleMaximizeFull"/>
  476.       </mousebind>
  477.       <mousebind button="Middle" action="Press">
  478.         <action name="Lower"/>
  479.         <action name="FocusToBottom"/>
  480.         <action name="Unfocus"/>
  481.       </mousebind>
  482.       <mousebind button="Up" action="Click">
  483.         <action name="Shade"/>
  484.         <action name="FocusToBottom"/>
  485.         <action name="Unfocus"/>
  486.         <action name="Lower"/>
  487.       </mousebind>
  488.       <mousebind button="Down" action="Click">
  489.         <action name="Unshade"/>
  490.         <action name="Raise"/>
  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="Top">
  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.           <edge>top</edge>
  509.         </action>
  510.       </mousebind>
  511.     </context>
  512.     <context name="Left">
  513.       <mousebind button="Left" action="Press">
  514.         <action name="Focus"/>
  515.         <action name="Raise"/>
  516.       </mousebind>
  517.       <mousebind button="Left" action="Drag">
  518.         <action name="Resize">
  519.           <edge>left</edge>
  520.         </action>
  521.       </mousebind>
  522.     </context>
  523.     <context name="Right">
  524.       <mousebind button="Left" action="Press">
  525.         <action name="Focus"/>
  526.         <action name="Raise"/>
  527.       </mousebind>
  528.       <mousebind button="Left" action="Drag">
  529.         <action name="Resize">
  530.           <edge>right</edge>
  531.         </action>
  532.       </mousebind>
  533.     </context>
  534.     <context name="Bottom">
  535.       <mousebind button="Left" action="Press">
  536.         <action name="Focus"/>
  537.         <action name="Raise"/>
  538.       </mousebind>
  539.       <mousebind button="Left" action="Drag">
  540.         <action name="Resize">
  541.           <edge>bottom</edge>
  542.         </action>
  543.       </mousebind>
  544.       <mousebind button="Middle" action="Press">
  545.         <action name="Lower"/>
  546.         <action name="FocusToBottom"/>
  547.         <action name="Unfocus"/>
  548.       </mousebind>
  549.       <mousebind button="Right" action="Press">
  550.         <action name="Focus"/>
  551.         <action name="Raise"/>
  552.         <action name="ShowMenu">
  553.           <menu>client-menu</menu>
  554.         </action>
  555.       </mousebind>
  556.     </context>
  557.     <context name="BLCorner">
  558.       <mousebind button="Left" action="Press">
  559.         <action name="Focus"/>
  560.         <action name="Raise"/>
  561.       </mousebind>
  562.       <mousebind button="Left" action="Drag">
  563.         <action name="Resize"/>
  564.       </mousebind>
  565.     </context>
  566.     <context name="BRCorner">
  567.       <mousebind button="Left" action="Press">
  568.         <action name="Focus"/>
  569.         <action name="Raise"/>
  570.       </mousebind>
  571.       <mousebind button="Left" action="Drag">
  572.         <action name="Resize"/>
  573.       </mousebind>
  574.     </context>
  575.     <context name="TLCorner">
  576.       <mousebind button="Left" action="Press">
  577.         <action name="Focus"/>
  578.         <action name="Raise"/>
  579.         <action name="Unshade"/>
  580.       </mousebind>
  581.       <mousebind button="Left" action="Drag">
  582.         <action name="Resize"/>
  583.       </mousebind>
  584.     </context>
  585.     <context name="TRCorner">
  586.       <mousebind button="Left" action="Press">
  587.         <action name="Focus"/>
  588.         <action name="Raise"/>
  589.         <action name="Unshade"/>
  590.       </mousebind>
  591.       <mousebind button="Left" action="Drag">
  592.         <action name="Resize"/>
  593.       </mousebind>
  594.     </context>
  595.     <context name="Client">
  596.       <mousebind button="Left" action="Press">
  597.         <action name="Focus"/>
  598.         <action name="Raise"/>
  599.       </mousebind>
  600.       <mousebind button="Middle" action="Press">
  601.         <action name="Focus"/>
  602.         <action name="Raise"/>
  603.       </mousebind>
  604.       <mousebind button="Right" action="Press">
  605.         <action name="Focus"/>
  606.         <action name="Raise"/>
  607.       </mousebind>
  608.     </context>
  609.     <context name="Icon">
  610.       <mousebind button="Left" action="Press">
  611.         <action name="Focus"/>
  612.         <action name="Raise"/>
  613.         <action name="Unshade"/>
  614.         <action name="ShowMenu">
  615.           <menu>client-menu</menu>
  616.         </action>
  617.       </mousebind>
  618.       <mousebind button="Right" action="Press">
  619.         <action name="Focus"/>
  620.         <action name="Raise"/>
  621.         <action name="ShowMenu">
  622.           <menu>client-menu</menu>
  623.         </action>
  624.       </mousebind>
  625.     </context>
  626.     <context name="AllDesktops">
  627.       <mousebind button="Left" action="Press">
  628.         <action name="Focus"/>
  629.         <action name="Raise"/>
  630.         <action name="Unshade"/>
  631.       </mousebind>
  632.       <mousebind button="Left" action="Click">
  633.         <action name="ToggleOmnipresent"/>
  634.       </mousebind>
  635.     </context>
  636.     <context name="Shade">
  637.       <mousebind button="Left" action="Press">
  638.         <action name="Focus"/>
  639.         <action name="Raise"/>
  640.       </mousebind>
  641.       <mousebind button="Left" action="Click">
  642.         <action name="ToggleShade"/>
  643.       </mousebind>
  644.     </context>
  645.     <context name="Iconify">
  646.       <mousebind button="Left" action="Press">
  647.         <action name="Focus"/>
  648.         <action name="Raise"/>
  649.       </mousebind>
  650.       <mousebind button="Left" action="Click">
  651.         <action name="Iconify"/>
  652.       </mousebind>
  653.     </context>
  654.     <context name="Maximize">
  655.       <mousebind button="Left" action="Press">
  656.         <action name="Focus"/>
  657.         <action name="Raise"/>
  658.         <action name="Unshade"/>
  659.       </mousebind>
  660.       <mousebind button="Middle" action="Press">
  661.         <action name="Focus"/>
  662.         <action name="Raise"/>
  663.         <action name="Unshade"/>
  664.       </mousebind>
  665.       <mousebind button="Right" action="Press">
  666.         <action name="Focus"/>
  667.         <action name="Raise"/>
  668.         <action name="Unshade"/>
  669.       </mousebind>
  670.       <mousebind button="Left" action="Click">
  671.         <action name="ToggleMaximizeFull"/>
  672.       </mousebind>
  673.       <mousebind button="Middle" action="Click">
  674.         <action name="ToggleMaximizeVert"/>
  675.       </mousebind>
  676.       <mousebind button="Right" action="Click">
  677.         <action name="ToggleMaximizeHorz"/>
  678.       </mousebind>
  679.     </context>
  680.     <context name="Close">
  681.       <mousebind button="Left" action="Press">
  682.         <action name="Focus"/>
  683.         <action name="Raise"/>
  684.         <action name="Unshade"/>
  685.       </mousebind>
  686.       <mousebind button="Left" action="Click">
  687.         <action name="Close"/>
  688.       </mousebind>
  689.     </context>
  690.     <context name="Desktop">
  691.       <mousebind button="Up" action="Click">
  692.         <action name="DesktopPrevious"/>
  693.       </mousebind>
  694.       <mousebind button="Down" action="Click">
  695.         <action name="DesktopNext"/>
  696.       </mousebind>
  697.       <mousebind button="A-Up" action="Click">
  698.         <action name="DesktopPrevious"/>
  699.       </mousebind>
  700.       <mousebind button="A-Down" action="Click">
  701.         <action name="DesktopNext"/>
  702.       </mousebind>
  703.       <mousebind button="C-A-Up" action="Click">
  704.         <action name="DesktopPrevious"/>
  705.       </mousebind>
  706.       <mousebind button="C-A-Down" action="Click">
  707.         <action name="DesktopNext"/>
  708.       </mousebind>
  709.       <mousebind button="Left" action="Press">
  710.         <action name="Focus"/>
  711.         <action name="Raise"/>
  712.       </mousebind>
  713.     </context>
  714.     <context name="Root">
  715.       <!-- Menus -->
  716.       <mousebind button="Middle" action="Press">
  717.         <action name="ShowMenu">
  718.           <menu>client-list-combined-menu</menu>
  719.         </action>
  720.       </mousebind>
  721.       <mousebind button="Right" action="Press">
  722.         <action name="ShowMenu">
  723.           <menu>root-menu</menu>
  724.         </action>
  725.       </mousebind>
  726.     </context>
  727.     <context name="MoveResize">
  728.       <mousebind button="Up" action="Click">
  729.         <action name="DesktopPrevious"/>
  730.       </mousebind>
  731.       <mousebind button="Down" action="Click">
  732.         <action name="DesktopNext"/>
  733.       </mousebind>
  734.       <mousebind button="A-Up" action="Click">
  735.         <action name="DesktopPrevious"/>
  736.       </mousebind>
  737.       <mousebind button="A-Down" action="Click">
  738.         <action name="DesktopNext"/>
  739.       </mousebind>
  740.     </context>
  741.   </mouse>
  742.   <menu>
  743.     <!-- You can specify more than one menu file in here and they are all loaded,
  744.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  745.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  746.     <!-- system menu files on Debian systems
  747.    <file>/var/lib/openbox/debian-menu.xml</file>
  748.    <file>debian-menu.xml</file> -->
  749.     <file>menu.xml</file>
  750.     <hideDelay>200</hideDelay>
  751.     <middle>no</middle>
  752.     <submenuShowDelay>100</submenuShowDelay>
  753.     <applicationIcons>yes</applicationIcons>
  754.   </menu>
  755.   <applications>
  756.     <!--
  757.  # this is an example with comments through out. use these to make your
  758.  # own rules, but without the comments of course.
  759.  
  760.  <application name="first element of window's WM_CLASS property (see xprop)"
  761.              class="second element of window's WM_CLASS property (see xprop)"
  762.               role="the window's WM_WINDOW_ROLE property (see xprop)">
  763.  # the name or the class can be set, or both. this is used to match
  764.  # windows when they appear. role can optionally be set as well, to
  765.  # further restrict your matches.
  766.  
  767.  # the name, class, and role use simple wildcard matching such as those
  768.  # used by a shell. you can use * to match any characters and ? to match
  769.  # any single character.
  770.  
  771.  # when multiple rules match a window, they will all be applied, in the
  772.  # order that they appear in this list
  773.  
  774.  
  775.    # each element can be left out or set to 'default' to specify to not
  776.    # change that attribute of the window
  777.  
  778.    <decor>yes</decor>
  779.    # enable or disable window decorations
  780.  
  781.    <shade>no</shade>
  782.    # make the window shaded when it appears, or not
  783.  
  784.    <position>
  785.      # the position is only used if both an x and y coordinate are provided
  786.      # (and not set to 'default')
  787.      <x>center</x>
  788.      # a number like 50, or 'center' to center on screen. use a negative number
  789.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  790.      # right edge (or bottom).
  791.      <y>200</y>
  792.      <monitor>1</monitor>
  793.      # specifies the monitor in a xinerama setup.
  794.      # 1 is the first head, or 'mouse' for wherever the mouse is
  795.    </position>
  796.  
  797.    <focus>yes</focus>
  798.    # if the window should try be given focus when it appears. if this is set
  799.    # to yes it doesn't guarantee the window will be given focus. some
  800.    # restrictions may apply, but Openbox will try to
  801.  
  802.    <desktop>1</desktop>
  803.    # 1 is the first desktop, 'all' for all desktops
  804.  
  805.    <layer>normal</layer>
  806.    # 'above', 'normal', or 'below'
  807.  
  808.    <iconic>no</iconic>
  809.    # make the window iconified when it appears, or not
  810.  
  811.    <skip_pager>no</skip_pager>
  812.    # asks to not be shown in pagers
  813.  
  814.    <skip_taskbar>no</skip_taskbar>
  815.    # asks to not be shown in taskbars. window cycling actions will also
  816.    # skip past such windows
  817.  
  818.    <fullscreen>yes</fullscreen>
  819.    # make the window in fullscreen mode when it appears
  820.  
  821.    <maximized>true</maximized>
  822.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  823.  </application>
  824.  
  825.  # end of the example
  826. -->
  827.     <application name="gmessage">
  828.       <decor>no</decor>
  829.       <shade>no</shade>
  830.       <skip_pager>yes</skip_pager>
  831.       <skip_taskbar>yes</skip_taskbar>
  832.       <fullscreen>no</fullscreen>
  833.       <maximized>no</maximized>
  834.     </application>
  835.     <application name="openbox-logout">
  836.       <decor>no</decor>
  837.       <shade>no</shade>
  838.       <skip_pager>yes</skip_pager>
  839.       <fullscreen>no</fullscreen>
  840.       <maximized>no</maximized>
  841.       <layer>above</layer>
  842.     </application>
  843.   </applications>
  844. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement