SHARE
TWEET

Openbox RC

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