Advertisement
Guest User

lubuntu-rc.xml

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