SHARE
TWEET

.config/openbox/rc.xml Sample

julientm Apr 4th, 2019 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>Primary</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>1</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>Onyx-Citrus</name>
  46.     <titleLayout>DNSLIMC</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>sans</name>
  61.       <size>8</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>sans</name>
  70.       <size>8</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>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>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>sans</name>
  97.       <size>9</size>
  98.       <!-- font size in points -->
  99.       <weight>bold</weight>
  100.       <!-- 'bold' or 'normal' -->
  101.       <slant>normal</slant>
  102.       <!-- 'italic' or 'normal' -->
  103.     </font>
  104.     <font place="InactiveOnScreenDisplay">
  105.       <name>sans</name>
  106.       <size>9</size>
  107.       <!-- font size in points -->
  108.       <weight>bold</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>4</number>
  124.     <firstdesk>1</firstdesk>
  125.     <names>
  126.       <name>One</name>
  127.       <name>Two</name>
  128.       <name>Three</name>
  129.       <name>Four</name>
  130.     </names>
  131.     <popupTime>645</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>yes</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>1</top>
  157.     <bottom>1</bottom>
  158.     <left>1</left>
  159.     <right>1</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-1">
  231.       <action name="GoToDesktop">
  232.         <to>1</to>
  233.       </action>
  234.     </keybind>
  235.     <keybind key="W-2">
  236.       <action name="GoToDesktop">
  237.         <to>2</to>
  238.       </action>
  239.     </keybind>
  240.     <keybind key="W-3">
  241.       <action name="GoToDesktop">
  242.         <to>3</to>
  243.       </action>
  244.     </keybind>
  245.     <keybind key="W-4">
  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>scrot -s</command>
  271.       </action>
  272.     </keybind>
  273.     <!-- Keybindings for window switching -->
  274.     <keybind key="A-Tab">
  275.       <action name="NextWindow">
  276.         <finalactions>
  277.           <action name="Focus"/>
  278.           <action name="Raise"/>
  279.           <action name="Unshade"/>
  280.         </finalactions>
  281.       </action>
  282.     </keybind>
  283.     <keybind key="A-S-Tab">
  284.       <action name="PreviousWindow">
  285.         <finalactions>
  286.           <action name="Focus"/>
  287.           <action name="Raise"/>
  288.           <action name="Unshade"/>
  289.         </finalactions>
  290.       </action>
  291.     </keybind>
  292.     <keybind key="C-A-Tab">
  293.       <action name="NextWindow">
  294.         <panels>yes</panels>
  295.         <desktop>yes</desktop>
  296.         <finalactions>
  297.           <action name="Focus"/>
  298.           <action name="Raise"/>
  299.           <action name="Unshade"/>
  300.         </finalactions>
  301.       </action>
  302.     </keybind>
  303.     <!-- Keybindings for window switching with the arrow keys -->
  304.     <keybind key="W-S-Right">
  305.       <action name="DirectionalCycleWindows">
  306.         <direction>right</direction>
  307.       </action>
  308.     </keybind>
  309.     <keybind key="W-S-Left">
  310.       <action name="DirectionalCycleWindows">
  311.         <direction>left</direction>
  312.       </action>
  313.     </keybind>
  314.     <keybind key="W-S-Up">
  315.       <action name="DirectionalCycleWindows">
  316.         <direction>up</direction>
  317.       </action>
  318.     </keybind>
  319.     <keybind key="W-S-Down">
  320.       <action name="DirectionalCycleWindows">
  321.         <direction>down</direction>
  322.       </action>
  323.     </keybind>
  324.     <!-- Keybindings to resize windows  https://askubuntu.com/questions/861773/how-can-window-snap-be-enabled-in-openbox -->
  325.     <keybind key="W-Left">        # HalfLeftScreen
  326.     <action name="UnmaximizeFull"/>
  327.     <action name="MoveResizeTo"><x>0</x><y>0</y><height>97%</height><width>50%</width></action>
  328.   </keybind>
  329.   <keybind key="W-Right">       # HalfRightScreen
  330.     <action name="UnmaximizeFull"/>
  331.     <action name="MoveResizeTo"><x>-0</x><y>0</y><height>97%</height><width>50%</width></action>
  332.   </keybind>
  333.   <keybind key="W-Up">          # HalfUpperScreen
  334.     <action name="UnmaximizeFull"/>
  335.     <action name="MoveResizeTo"><x>0</x><y>0</y><width>100%</width><height>50%</height></action>
  336.   </keybind>
  337.   <keybind key="W-Down">        # HalfLowerScreen
  338.     <action name="UnmaximizeFull"/>
  339.     <action name="MoveResizeTo"><x>0</x><y>-0</y><width>100%</width><height>50%</height></action>
  340.   </keybind>
  341.     <keybind key="W-">          # Maximize Full screen
  342.     <action name="UnmaximizeFull"/>
  343.     <action name="MoveResizeTo"><x>0</x><y>0</y><width>100%</width><height>100%</height></action>
  344.   </keybind>
  345.   <keybind key="W-S-1">
  346.     <action name="SendToDesktop">
  347.       <to>1</to>
  348.     </action>
  349.   </keybind>
  350.   <keybind key="W-S-2">
  351.     <action name="SendToDesktop">
  352.       <to>2</to>
  353.     </action>
  354.   </keybind>
  355.   <keybind key="W-S-3">
  356.     <action name="SendToDesktop">
  357.       <to>3</to>
  358.     </action>
  359.   </keybind>
  360.   <keybind key="W-S-4">
  361.     <action name="SendToDesktop">
  362.       <to>4</to>
  363.     </action>
  364.   </keybind>
  365. </keyboard>
  366.  
  367.   <!-- Insert all keyboard entries before -->
  368.   <mouse>
  369.     <dragThreshold>1</dragThreshold>
  370.     <!-- number of pixels the mouse must move before a drag begins -->
  371.     <doubleClickTime>500</doubleClickTime>
  372.     <!-- in milliseconds (1000 = 1 second) -->
  373.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  374.     <!-- Time before changing desktops when the pointer touches the edge of the
  375.       screen while moving a window, in milliseconds (1000 = 1 second).
  376.       Set this to 0 to disable warping -->
  377.     <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  378.     <!-- Set this to TRUE to move the mouse pointer across the desktop when
  379.       switching due to hitting the edge of the screen -->
  380.     <context name="Frame">
  381.       <mousebind button="A-Left" action="Press">
  382.         <action name="Focus"/>
  383.         <action name="Raise"/>
  384.       </mousebind>
  385.       <mousebind button="A-Left" action="Click">
  386.         <action name="Unshade"/>
  387.       </mousebind>
  388.       <mousebind button="A-Left" action="Drag">
  389.         <action name="Move"/>
  390.       </mousebind>
  391.       <mousebind button="A-Right" action="Press">
  392.         <action name="Focus"/>
  393.         <action name="Raise"/>
  394.         <action name="Unshade"/>
  395.       </mousebind>
  396.       <mousebind button="A-Right" action="Drag">
  397.         <action name="Resize"/>
  398.       </mousebind>
  399.       <mousebind button="A-Middle" action="Press">
  400.         <action name="Lower"/>
  401.         <action name="FocusToBottom"/>
  402.         <action name="Unfocus"/>
  403.       </mousebind>
  404.       <mousebind button="A-Up" action="Click">
  405.         <action name="GoToDesktop">
  406.           <to>previous</to>
  407.         </action>
  408.       </mousebind>
  409.       <mousebind button="A-Down" action="Click">
  410.         <action name="GoToDesktop">
  411.           <to>next</to>
  412.         </action>
  413.       </mousebind>
  414.       <mousebind button="C-A-Up" action="Click">
  415.         <action name="GoToDesktop">
  416.           <to>previous</to>
  417.         </action>
  418.       </mousebind>
  419.       <mousebind button="C-A-Down" action="Click">
  420.         <action name="GoToDesktop">
  421.           <to>next</to>
  422.         </action>
  423.       </mousebind>
  424.       <mousebind button="A-S-Up" action="Click">
  425.         <action name="SendToDesktop">
  426.           <to>previous</to>
  427.         </action>
  428.       </mousebind>
  429.       <mousebind button="A-S-Down" action="Click">
  430.         <action name="SendToDesktop">
  431.           <to>next</to>
  432.         </action>
  433.       </mousebind>
  434.     </context>
  435.     <context name="Titlebar">
  436.       <mousebind button="Left" action="Drag">
  437.         <action name="Move"/>
  438.       </mousebind>
  439.       <mousebind button="Left" action="DoubleClick">
  440.         <action name="ToggleMaximize"/>
  441.       </mousebind>
  442.       <mousebind button="Up" action="Click">
  443.         <action name="if">
  444.           <shaded>no</shaded>
  445.           <then>
  446.             <action name="Shade"/>
  447.             <action name="FocusToBottom"/>
  448.             <action name="Unfocus"/>
  449.             <action name="Lower"/>
  450.           </then>
  451.         </action>
  452.       </mousebind>
  453.       <mousebind button="Down" action="Click">
  454.         <action name="if">
  455.           <shaded>yes</shaded>
  456.           <then>
  457.             <action name="Unshade"/>
  458.             <action name="Raise"/>
  459.           </then>
  460.         </action>
  461.       </mousebind>
  462.     </context>
  463.     <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  464.       <mousebind button="Left" action="Press">
  465.         <action name="Focus"/>
  466.         <action name="Raise"/>
  467.         <action name="Unshade"/>
  468.       </mousebind>
  469.       <mousebind button="Middle" action="Press">
  470.         <action name="Lower"/>
  471.         <action name="FocusToBottom"/>
  472.         <action name="Unfocus"/>
  473.       </mousebind>
  474.       <mousebind button="Right" action="Press">
  475.         <action name="Focus"/>
  476.         <action name="Raise"/>
  477.         <action name="ShowMenu">
  478.           <menu>client-menu</menu>
  479.         </action>
  480.       </mousebind>
  481.     </context>
  482.     <context name="Top">
  483.       <mousebind button="Left" action="Drag">
  484.         <action name="Resize">
  485.           <edge>top</edge>
  486.         </action>
  487.       </mousebind>
  488.     </context>
  489.     <context name="Left">
  490.       <mousebind button="Left" action="Drag">
  491.         <action name="Resize">
  492.           <edge>left</edge>
  493.         </action>
  494.       </mousebind>
  495.     </context>
  496.     <context name="Right">
  497.       <mousebind button="Left" action="Drag">
  498.         <action name="Resize">
  499.           <edge>right</edge>
  500.         </action>
  501.       </mousebind>
  502.     </context>
  503.     <context name="Bottom">
  504.       <mousebind button="Left" action="Drag">
  505.         <action name="Resize">
  506.           <edge>bottom</edge>
  507.         </action>
  508.       </mousebind>
  509.       <mousebind button="Right" action="Press">
  510.         <action name="Focus"/>
  511.         <action name="Raise"/>
  512.         <action name="ShowMenu">
  513.           <menu>client-menu</menu>
  514.         </action>
  515.       </mousebind>
  516.     </context>
  517.     <context name="TRCorner BRCorner TLCorner BLCorner">
  518.       <mousebind button="Left" action="Press">
  519.         <action name="Focus"/>
  520.         <action name="Raise"/>
  521.         <action name="Unshade"/>
  522.       </mousebind>
  523.       <mousebind button="Left" action="Drag">
  524.         <action name="Resize"/>
  525.       </mousebind>
  526.     </context>
  527.     <context name="Client">
  528.       <mousebind button="Left" action="Press">
  529.         <action name="Focus"/>
  530.         <action name="Raise"/>
  531.       </mousebind>
  532.       <mousebind button="Middle" action="Press">
  533.         <action name="Focus"/>
  534.         <action name="Raise"/>
  535.       </mousebind>
  536.       <mousebind button="Right" action="Press">
  537.         <action name="Focus"/>
  538.         <action name="Raise"/>
  539.       </mousebind>
  540.     </context>
  541.     <context name="Icon">
  542.       <mousebind button="Left" action="Press">
  543.         <action name="Focus"/>
  544.         <action name="Raise"/>
  545.         <action name="Unshade"/>
  546.         <action name="ShowMenu">
  547.           <menu>client-menu</menu>
  548.         </action>
  549.       </mousebind>
  550.       <mousebind button="Right" action="Press">
  551.         <action name="Focus"/>
  552.         <action name="Raise"/>
  553.         <action name="ShowMenu">
  554.           <menu>client-menu</menu>
  555.         </action>
  556.       </mousebind>
  557.     </context>
  558.     <context name="AllDesktops">
  559.       <mousebind button="Left" action="Press">
  560.         <action name="Focus"/>
  561.         <action name="Raise"/>
  562.         <action name="Unshade"/>
  563.       </mousebind>
  564.       <mousebind button="Left" action="Click">
  565.         <action name="ToggleOmnipresent"/>
  566.       </mousebind>
  567.     </context>
  568.     <context name="Shade">
  569.       <mousebind button="Left" action="Press">
  570.         <action name="Focus"/>
  571.         <action name="Raise"/>
  572.       </mousebind>
  573.       <mousebind button="Left" action="Click">
  574.         <action name="ToggleShade"/>
  575.       </mousebind>
  576.     </context>
  577.     <context name="Iconify">
  578.       <mousebind button="Left" action="Press">
  579.         <action name="Focus"/>
  580.         <action name="Raise"/>
  581.       </mousebind>
  582.       <mousebind button="Left" action="Click">
  583.         <action name="Iconify"/>
  584.       </mousebind>
  585.     </context>
  586.     <context name="Maximize">
  587.       <mousebind button="Left" action="Press">
  588.         <action name="Focus"/>
  589.         <action name="Raise"/>
  590.         <action name="Unshade"/>
  591.       </mousebind>
  592.       <mousebind button="Middle" action="Press">
  593.         <action name="Focus"/>
  594.         <action name="Raise"/>
  595.         <action name="Unshade"/>
  596.       </mousebind>
  597.       <mousebind button="Right" action="Press">
  598.         <action name="Focus"/>
  599.         <action name="Raise"/>
  600.         <action name="Unshade"/>
  601.       </mousebind>
  602.       <mousebind button="Left" action="Click">
  603.         <action name="ToggleMaximize"/>
  604.       </mousebind>
  605.       <mousebind button="Middle" action="Click">
  606.         <action name="ToggleMaximize">
  607.           <direction>vertical</direction>
  608.         </action>
  609.       </mousebind>
  610.       <mousebind button="Right" action="Click">
  611.         <action name="ToggleMaximize">
  612.           <direction>horizontal</direction>
  613.         </action>
  614.       </mousebind>
  615.     </context>
  616.     <context name="Close">
  617.       <mousebind button="Left" action="Press">
  618.         <action name="Focus"/>
  619.         <action name="Raise"/>
  620.         <action name="Unshade"/>
  621.       </mousebind>
  622.       <mousebind button="Left" action="Click">
  623.         <action name="Close"/>
  624.       </mousebind>
  625.     </context>
  626.     <context name="Desktop">
  627.       <mousebind button="Up" action="Click">
  628.         <action name="GoToDesktop">
  629.           <to>previous</to>
  630.         </action>
  631.       </mousebind>
  632.       <mousebind button="Down" action="Click">
  633.         <action name="GoToDesktop">
  634.           <to>next</to>
  635.         </action>
  636.       </mousebind>
  637.       <mousebind button="A-Up" action="Click">
  638.         <action name="GoToDesktop">
  639.           <to>previous</to>
  640.         </action>
  641.       </mousebind>
  642.       <mousebind button="A-Down" action="Click">
  643.         <action name="GoToDesktop">
  644.           <to>next</to>
  645.         </action>
  646.       </mousebind>
  647.       <mousebind button="C-A-Up" action="Click">
  648.         <action name="GoToDesktop">
  649.           <to>previous</to>
  650.         </action>
  651.       </mousebind>
  652.       <mousebind button="C-A-Down" action="Click">
  653.         <action name="GoToDesktop">
  654.           <to>next</to>
  655.         </action>
  656.       </mousebind>
  657.       <mousebind button="Left" action="Press">
  658.         <action name="Focus"/>
  659.         <action name="Raise"/>
  660.       </mousebind>
  661.       <mousebind button="Right" action="Press">
  662.         <action name="Focus"/>
  663.         <action name="Raise"/>
  664.       </mousebind>
  665.     </context>
  666.     <context name="Root">
  667.       <!-- Menus -->
  668.       <mousebind button="Middle" action="Press">
  669.         <action name="ShowMenu">
  670.           <menu>client-list-combined-menu</menu>
  671.         </action>
  672.       </mousebind>
  673.       <mousebind button="Right" action="Press">
  674.         <action name="ShowMenu">
  675.           <menu>root-menu</menu>
  676.         </action>
  677.       </mousebind>
  678.     </context>
  679.     <context name="MoveResize">
  680.       <mousebind button="Up" action="Click">
  681.         <action name="GoToDesktop">
  682.           <to>previous</to>
  683.         </action>
  684.       </mousebind>
  685.       <mousebind button="Down" action="Click">
  686.         <action name="GoToDesktop">
  687.           <to>next</to>
  688.         </action>
  689.       </mousebind>
  690.       <mousebind button="A-Up" action="Click">
  691.         <action name="GoToDesktop">
  692.           <to>previous</to>
  693.         </action>
  694.       </mousebind>
  695.       <mousebind button="A-Down" action="Click">
  696.         <action name="GoToDesktop">
  697.           <to>next</to>
  698.         </action>
  699.       </mousebind>
  700.     </context>
  701.   </mouse>
  702.   <menu>
  703.     <!-- You can specify more than one menu file in here and they are all loaded,
  704.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  705.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  706.     <!-- system menu files on Debian systems -->
  707.     <file>/var/lib/openbox/debian-menu.xml</file>
  708.     <file>menu.xml</file>
  709.     <hideDelay>200</hideDelay>
  710.     <!-- if a press-release lasts longer than this setting (in milliseconds), the
  711.       menu is hidden again -->
  712.     <middle>no</middle>
  713.     <!-- center submenus vertically about the parent entry -->
  714.     <submenuShowDelay>100</submenuShowDelay>
  715.     <!-- time to delay before showing a submenu after hovering over the parent
  716.       entry.
  717.       if this is a negative value, then the delay is infinite and the
  718.       submenu will not be shown until it is clicked on -->
  719.     <submenuHideDelay>400</submenuHideDelay>
  720.     <!-- time to delay before hiding a submenu when selecting another
  721.       entry in parent menu
  722.       if this is a negative value, then the delay is infinite and the
  723.       submenu will not be hidden until a different submenu is opened -->
  724.     <showIcons>yes</showIcons>
  725.     <!-- controls if icons appear in the client-list-(combined-)menu -->
  726.     <manageDesktops>yes</manageDesktops>
  727.     <!-- show the manage desktops section in the client-list-(combined-)menu -->
  728.   </menu>
  729.   <applications>
  730.     <!--
  731.  # this is an example with comments through out. use these to make your
  732.  # own rules, but without the comments of course.
  733.  # you may use one or more of the name/class/role/title/type rules to specify
  734.  # windows to match
  735.  
  736.  <application name="the window's _OB_APP_NAME property (see obxprop)"
  737.              class="the window's _OB_APP_CLASS property (see obxprop)"
  738.          groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  739.         groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  740.               role="the window's _OB_APP_ROLE property (see obxprop)"
  741.              title="the window's _OB_APP_TITLE property (see obxprop)"
  742.               type="the window's _OB_APP_TYPE property (see obxprob)..
  743.                      (if unspecified, then it is 'dialog' for child windows)">
  744.  # you may set only one of name/class/role/title/type, or you may use more
  745.  # than one together to restrict your matches.
  746.  
  747.  # the name, class, role, and title use simple wildcard matching such as those
  748.  # used by a shell. you can use * to match any characters and ? to match
  749.  # any single character.
  750.  
  751.  # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  752.  #    or desktop
  753.  
  754.  # when multiple rules match a window, they will all be applied, in the
  755.  # order that they appear in this list
  756.  
  757.  
  758.    # each rule element can be left out or set to 'default' to specify to not
  759.    # change that attribute of the window
  760.  
  761.    <decor>yes</decor>
  762.    # enable or disable window decorations
  763.  
  764.    <shade>no</shade>
  765.    # make the window shaded when it appears, or not
  766.  
  767.    <position force="no">
  768.      # the position is only used if both an x and y coordinate are provided
  769.      # (and not set to 'default')
  770.      # when force is "yes", then the window will be placed here even if it
  771.      # says you want it placed elsewhere.  this is to override buggy
  772.      # applications who refuse to behave
  773.      <x>center</x>
  774.      # a number like 50, or 'center' to center on screen. use a negative number
  775.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  776.      # the right edge (or bottom). use 'default' to specify using value
  777.      # provided by the application, or chosen by openbox, instead.
  778.      <y>200</y>
  779.      <monitor>1</monitor>
  780.      # specifies the monitor in a xinerama setup.
  781.      # 1 is the first head, or 'mouse' for wherever the mouse is
  782.    </position>
  783.  
  784.    <size>
  785.      # the size to make the window.
  786.      <width>20</width>
  787.      # a number like 20, or 'default' to use the size given by the application.
  788.      # you can use fractions such as 1/2 or percentages such as 75% in which
  789.      # case the value is relative to the size of the monitor that the window
  790.      # appears on.
  791.      <height>30%</height>
  792.    </size>
  793.  
  794.    <focus>yes</focus>
  795.    # if the window should try be given focus when it appears. if this is set
  796.    # to yes it doesn't guarantee the window will be given focus. some
  797.    # restrictions may apply, but Openbox will try to
  798.  
  799.    <desktop>1</desktop>
  800.    # 1 is the first desktop, 'all' for all desktops
  801.  
  802.    <layer>normal</layer>
  803.    # 'above', 'normal', or 'below'
  804.  
  805.    <iconic>no</iconic>
  806.    # make the window iconified when it appears, or not
  807.  
  808.    <skip_pager>no</skip_pager>
  809.    # asks to not be shown in pagers
  810.  
  811.    <skip_taskbar>no</skip_taskbar>
  812.    # asks to not be shown in taskbars. window cycling actions will also
  813.    # skip past such windows
  814.  
  815.    <fullscreen>yes</fullscreen>
  816.    # make the window in fullscreen mode when it appears
  817.  
  818.    <maximized>true</maximized>
  819.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  820.  </application>
  821.  
  822.  # end of the example
  823. -->
  824.   </applications>
  825. </openbox_config>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top