Advertisement
Guest User

Untitled

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