Advertisement
edps

rc.xml

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