Advertisement
Guest User

rc.xml

a guest
Jul 31st, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 26.92 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  3.   <!--- #################### -->
  4.   <!--- #### RESISTANCE #### -->
  5.   <!--- #################### -->
  6.   <resistance>
  7.     <strength>10</strength>
  8.     <!-- Tells Openbox how much resistance (in pixels) there is between two windows before it lets them overlap -->
  9.     <screen_edge_strength>20</screen_edge_strength>
  10.     <!-- Basically the same as strength but between window and the screen edge  -->
  11.   </resistance>
  12.   <!--- #################### -->
  13.   <!--- ####### FOCUS ###### -->
  14.   <!--- #################### -->
  15.   <focus>
  16.     <focusNew>no</focusNew>
  17.     <!-- Openbox will automatically give focus to new windows when they are created, otherwise the focus will stay as it is -->
  18.     <followMouse>no</followMouse>
  19.     <!-- Move focus to a window when you move the mouse into it -->
  20.     <focusLast>yes</focusLast>
  21.     <!-- Focus the last used window when changing desktops, instead of the one under the mouse pointer. when followMouse is enabled -->
  22.     <underMouse>no</underMouse>
  23.     <!-- Move focus under the mouse, even when the mouse is not moving -->
  24.     <focusDelay>200</focusDelay>
  25.     <!-- When followMouse is enabled, the mouse must be inside the window for this many milliseconds (1000 = 1 sec) before moving focus to it -->
  26.     <raiseOnFocus>no</raiseOnFocus>
  27.     <!-- when followMouse is enabled, and a window is given focus by moving the mouse into it, also raise the window -->
  28.   </focus>
  29.   <!--- #################### -->
  30.   <!--- ##### PLACEMENT #### -->
  31.   <!--- #################### -->
  32.   <placement>
  33.     <policy>UnderMouse</policy>
  34.     <!-- 'Smart' or 'UnderMouse' -->
  35.     <center>yes</center>
  36.     <!-- whether to place windows in the center of the free area found or the top left corner -->
  37.     <monitor>Any</monitor>
  38.     <!-- with Smart placement on a multi-monitor system, try to place new windows on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where the active window is, 'Primary' - only on the primary monitor -->
  39.     <primaryMonitor>1</primaryMonitor>
  40.     <!-- The monitor where Openbox should place popup dialogs such as the focus cycling popup, or the desktop switch popup.  It can be an index from 1, specifying a particular monitor.  Or it can be one of the following: 'Mouse' - where the mouse is, or 'Active' - where the active window is -->
  41.   </placement>
  42.   <!--- #################### -->
  43.   <!--- ###### THEME ####### -->
  44.   <!--- #################### -->
  45.   <theme>
  46.     <name>Turquoise Nights Ob</name>
  47.     <titleLayout>NLIMC</titleLayout>
  48.     <!--
  49.      available characters are NDSLIMC, each can occur at most once.
  50.      N: window icon
  51.      L: window label (AKA title).
  52.      I: iconify
  53.      M: maximize
  54.      C: close
  55.      S: shade (roll up/down)
  56.      D: omnipresent (on all desktops).
  57.  -->
  58.     <keepBorder>yes</keepBorder>
  59.     <animateIconify>no</animateIconify>
  60.     <font place="ActiveWindow">
  61.       <name>snap</name>
  62.       <size>8</size>
  63.       <!-- font size in points -->
  64.       <weight>Bold</weight>
  65.       <!-- 'bold' or 'normal' -->
  66.       <slant>Normal</slant>
  67.       <!-- 'italic' or 'normal' -->
  68.     </font>
  69.     <font place="InactiveWindow">
  70.       <name>snap</name>
  71.       <size>8</size>
  72.       <!-- font size in points -->
  73.       <weight>Normal</weight>
  74.       <!-- 'bold' or 'normal' -->
  75.       <slant>Normal</slant>
  76.       <!-- 'italic' or 'normal' -->
  77.     </font>
  78.     <font place="MenuHeader">
  79.       <name>snap</name>
  80.       <size>9</size>
  81.       <!-- font size in points -->
  82.       <weight>Normal</weight>
  83.       <!-- 'bold' or 'normal' -->
  84.       <slant>Normal</slant>
  85.       <!-- 'italic' or 'normal' -->
  86.     </font>
  87.     <font place="MenuItem">
  88.       <name>snap</name>
  89.       <size>9</size>
  90.       <!-- font size in points -->
  91.       <weight>Normal</weight>
  92.       <!-- 'bold' or 'normal' -->
  93.       <slant>Normal</slant>
  94.       <!-- 'italic' or 'normal' -->
  95.     </font>
  96.     <font place="ActiveOnScreenDisplay">
  97.       <name>snap</name>
  98.       <size>9</size>
  99.       <!-- font size in points -->
  100.       <weight>Bold</weight>
  101.       <!-- 'bold' or 'normal' -->
  102.       <slant>Normal</slant>
  103.       <!-- 'italic' or 'normal' -->
  104.     </font>
  105.     <font place="InactiveOnScreenDisplay">
  106.       <name>snap</name>
  107.       <size>9</size>
  108.       <!-- font size in points -->
  109.       <weight>Bold</weight>
  110.       <!-- 'bold' or 'normal' -->
  111.       <slant>Normal</slant>
  112.       <!-- 'italic' or 'normal' -->
  113.     </font>
  114.   </theme>
  115.   <!--- #################### -->
  116.   <!--- ##### DESKTOPS ##### -->
  117.   <!--- #################### -->
  118.   <desktops>
  119.     <!-- this stuff is only used at startup, pagers allow you to change them during a session these are default values to use when other ones are not already set by other applications, or saved in your session use obconf if you want to change these without having to log out and back in -->
  120.     <number>4</number>
  121.     <firstdesk>1</firstdesk>
  122.     <names>
  123.       <name>1</name>
  124.       <name>2</name>
  125.       <name>3</name>
  126.       <name>4</name>
  127.       <!-- set names up here if you want to, like this:
  128.    <name>desktop 1</name>
  129.    <name>desktop 2</name>
  130.    -->
  131.     </names>
  132.     <popupTime>800</popupTime>
  133.     <!-- The number of milliseconds to show the popup for when switching desktops. Set this to 0 to disable the popup. -->
  134.   </desktops>
  135.   <!--- #################### -->
  136.   <!--- ###### RESIZE ###### -->
  137.   <!--- #################### -->
  138.   <resize>
  139.     <drawContents>yes</drawContents>
  140.     <popupShow>Nonpixel</popupShow>
  141.     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  142.     <popupPosition>Center</popupPosition>
  143.     <!-- 'Center', 'Top', or 'Fixed' -->
  144.     <popupFixedPosition>
  145.       <!-- these are used if popupPosition is set to 'Fixed' -->
  146.       <x>10</x>
  147.       <!-- positive number for distance from left edge, negative number for
  148.         distance from right edge, or 'Center' -->
  149.       <y>10</y>
  150.       <!-- positive number for distance from top edge, negative number for
  151.         distance from bottom edge, or 'Center' -->
  152.     </popupFixedPosition>
  153.   </resize>
  154.   <!--- #################### -->
  155.   <!--- ###### MARGINS ##### -->
  156.   <!--- #################### -->
  157.   <!-- You can reserve a portion of your screen where windows will not cover when they are maximized, or when they are initially placed. Many programs reserve space automatically, but you can use this in other cases. -->
  158.   <margins>
  159.     <top>0</top>
  160.     <bottom>0</bottom>
  161.     <left>0</left>
  162.     <right>0</right>
  163.   </margins>
  164.   <!--- #################### -->
  165.   <!--- ##### KEYBOARD ##### -->
  166.   <!--- #################### -->
  167.   <keyboard>
  168.     <chainQuitKey>C-g</chainQuitKey>
  169.     <!-- NAVIGATION -->
  170.     <keybind key="C-A-Left">
  171.       <action name="DesktopLeft"/>
  172.     </keybind>
  173.     <keybind key="C-A-Right">
  174.       <action name="DesktopRight"/>
  175.     </keybind>
  176.     <keybind key="C-A-Up">
  177.       <action name="DesktopUp"/>
  178.     </keybind>
  179.     <keybind key="C-A-Down">
  180.      <action name="DesktopDown"/>
  181.     </keybind>
  182.     <keybind key="C-S-A-Left">
  183.       <action name="SendToDesktopLeft"/>
  184.     </keybind>
  185.     <keybind key="C-S-A-Right">
  186.       <action name="SendToDesktopRight"/>
  187.     </keybind>
  188.     <keybind key="C-S-A-Up">
  189.       <action name="SendToDesktopUp"/>
  190.     </keybind>
  191.     <keybind key="C-S-A-Down">
  192.       <action name="SendToDesktopDown"/>
  193.     </keybind>
  194.     <keybind key="A-Tab">
  195.       <action name="NextWindow"/>
  196.     </keybind>
  197.     <!-- SETTINGS -->
  198.     <keybind key="W-a">
  199.       <action name="ToggleAlwaysOnTop"/>
  200.     </keybind>
  201.     <keybind key="W-d">
  202.       <action name="ToggleShowDesktop"/>
  203.     </keybind>
  204.     <keybind key="A-F4">
  205.       <action name="Close"/>
  206.     </keybind>
  207.     <keybind key="W-A-q">
  208.       <action name="Close"/>
  209.     </keybind>
  210.     <keybind key="W-A-w">
  211.       <action name="ToggleMaximizeFull"/>
  212.     </keybind>
  213.     <keybind key="W-A-e">
  214.       <action name="Iconify"/>
  215.     </keybind>
  216.     <!-- PROGRAMS -->
  217.     <keybind key="W-c">
  218.       <action name="Execute">
  219.         <command>gnome-calculator</command>
  220.       </action>
  221.     </keybind>
  222.     <keybind key="W-f">
  223.       <action name="Execute">
  224.         <command>thunar</command>
  225.         <startupnotify>
  226.           <enabled>yes</enabled>
  227.           <name>Thunar</name>
  228.         </startupnotify>
  229.       </action>
  230.     </keybind>
  231.     <keybind key="W-A-f">
  232.       <action name="Execute">
  233.         <command>thunar ~/Dropbox/Skole/Videreg&#xE5;ende/VG1/</command>
  234.       </action>
  235.     </keybind>
  236.     <keybind key="W-l">
  237.       <action name="Execute">
  238.         <command>xscreensaver-command -lock</command>
  239.       </action>
  240.     </keybind>
  241.     <keybind key="W-m">
  242.       <action name="Execute">
  243.         <command>thunderbird</command>
  244.       </action>
  245.     </keybind>
  246.     <keybind key="W-g">
  247.       <action name="Execute">
  248.         <command>mousepad</command>
  249.       </action>
  250.     </keybind>
  251.     <keybind key="W-t">
  252.       <action name="Execute">
  253.         <command>xfce4-terminal</command>
  254.       </action>
  255.     </keybind>
  256.     <keybind key="W-w">
  257.       <action name="Execute">
  258.         <command>firefox</command>
  259.       </action>
  260.     </keybind>
  261.     <keybind key="W-x">
  262.       <action name="Execute">
  263.         <command>xkill</command>
  264.       </action>
  265.     </keybind>
  266.     <keybind key="W-space">
  267.       <action name="Execute">
  268.         <command>dmenu_run -h 26 -fn snap:9 -nb "#2D2D2D" -nf "#C41D1D" -sb "#000000" -sf "#E82222"</command>
  269.       </action>
  270.     </keybind>
  271.     <keybind key="W-Print">
  272.       <action name="Execute">
  273.         <command>xfce4-screenshooter -r -c</command>
  274.       </action>
  275.     </keybind>
  276.     <keybind key="W-C-Print">
  277.       <action name="Execute">
  278.         <command>"imgup"</command>
  279.       </action>
  280.     </keybind>
  281.     <!-- OTHER -->
  282.     <keybind key="A-space">
  283.       <action name="ShowMenu">
  284.         <menu>client-menu</menu>
  285.       </action>
  286.     </keybind>
  287.     <keybind key="C-S-1">
  288.       <action name="Execute">
  289.         <command>mpv rtsp://10.0.0.233:554//mpeg4 --no-border --no-osc --title="cam_inngang"</command>
  290.       </action>
  291.     </keybind>
  292.     <keybind key="C-S-2">
  293.       <action name="Execute">
  294.         <command>mpv rtsp://10.0.0.234:554//mpeg4 --no-border --no-osc --title="cam_g&#xE5;rdsplass"</command>
  295.       </action>
  296.     </keybind>
  297.     <keybind key="W-v">
  298.       <action name="Execute">
  299.         <command>feh -x -^ meteogram http://www.yr.no/sted/Norge/S%C3%B8r-Tr%C3%B8ndelag/%C3%98rland/Opphaug/meteogram.png</command>
  300.       </action>
  301.     </keybind>
  302.   </keyboard>
  303.   <!--- #################### -->
  304.   <!--- ###### MOUSE ####### -->
  305.   <!--- #################### -->
  306.   <mouse>
  307.     <dragThreshold>1</dragThreshold>
  308.     <!-- Number of pixels the mouse must move before a drag begins -->
  309.     <doubleClickTime>500</doubleClickTime>
  310.     <!-- In milliseconds (1000 = 1 second) -->
  311.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  312.     <!-- Time before changing desktops when the pointer touches the edge of the screen while moving a window, in milliseconds (1000 = 1 second). Set this to 0 to disable warping -->
  313.     <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  314.     <!-- Set this to TRUE to move the mouse pointer across the desktop when switching due to hitting the edge of the screen -->
  315.     <context name="Frame">
  316.       <mousebind action="Press" button="A-Left">
  317.         <action name="Focus"/>
  318.         <action name="Raise"/>
  319.       </mousebind>
  320.       <!--mousebind action="Click" button="A-Left">
  321.        <action name="Unshade"/>
  322.      </mousebind-->
  323.       <mousebind action="Drag" button="A-Left">
  324.         <action name="Move"/>
  325.       </mousebind>
  326.       <mousebind action="Press" button="A-Right">
  327.         <action name="Focus"/>
  328.         <action name="Raise"/>
  329.         <action name="Unshade"/>
  330.       </mousebind>
  331.       <mousebind action="Drag" button="A-Right">
  332.         <action name="Resize"/>
  333.       </mousebind>
  334.       <mousebind action="Press" button="A-Middle">
  335.         <action name="Lower"/>
  336.         <action name="FocusToBottom"/>
  337.         <action name="Unfocus"/>
  338.       </mousebind>
  339.       <mousebind button="A-Left" action="DoubleClick">
  340.         <action name="ToggleMaximize"/>
  341.       </mousebind>
  342.       <mousebind action="Click" button="A-Up">
  343.         <action name="GoToDesktop">
  344.           <to>previous</to>
  345.         </action>
  346.       </mousebind>
  347.       <mousebind action="Click" button="A-Down">
  348.         <action name="GoToDesktop">
  349.           <to>next</to>
  350.         </action>
  351.       </mousebind>
  352.       <mousebind action="Click" button="C-A-Up">
  353.         <action name="GoToDesktop">
  354.           <to>previous</to>
  355.         </action>
  356.       </mousebind>
  357.       <mousebind action="Click" button="C-A-Down">
  358.         <action name="GoToDesktop">
  359.           <to>next</to>
  360.         </action>
  361.       </mousebind>
  362.       <mousebind action="Click" button="C-A-S-Up">
  363.         <action name="SendToDesktop">
  364.           <to>previous</to>
  365.         </action>
  366.       </mousebind>
  367.       <mousebind action="Click" button="C-A-S-Down">
  368.         <action name="SendToDesktop">
  369.           <to>next</to>
  370.         </action>
  371.       </mousebind>
  372.     </context>
  373.     <context name="Titlebar">
  374.       <mousebind action="Drag" button="Left">
  375.         <action name="Move"/>
  376.       </mousebind>
  377.       <mousebind action="DoubleClick" button="Left">
  378.         <action name="ToggleMaximize"/>
  379.       </mousebind>
  380.       <mousebind action="Click" button="Up">
  381.         <action name="if">
  382.           <shaded>no</shaded>
  383.           <then>
  384.             <action name="Shade"/>
  385.             <action name="FocusToBottom"/>
  386.             <action name="Unfocus"/>
  387.             <action name="Lower"/>
  388.           </then>
  389.         </action>
  390.       </mousebind>
  391.       <mousebind action="Click" button="Down">
  392.         <action name="if">
  393.           <shaded>yes</shaded>
  394.           <then>
  395.             <action name="Unshade"/>
  396.             <action name="Raise"/>
  397.           </then>
  398.         </action>
  399.       </mousebind>
  400.     </context>
  401.     <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  402.       <mousebind action="Press" button="Left">
  403.         <action name="Focus"/>
  404.         <action name="Raise"/>
  405.         <action name="Unshade"/>
  406.       </mousebind>
  407.       <mousebind action="Press" button="Middle">
  408.         <action name="Lower"/>
  409.         <action name="FocusToBottom"/>
  410.         <action name="Unfocus"/>
  411.       </mousebind>
  412.       <mousebind action="Press" button="Right">
  413.         <action name="Focus"/>
  414.         <action name="Raise"/>
  415.         <action name="ShowMenu">
  416.           <menu>client-menu</menu>
  417.         </action>
  418.       </mousebind>
  419.     </context>
  420.     <context name="Top">
  421.       <mousebind action="Drag" button="Left">
  422.         <action name="Resize">
  423.           <edge>top</edge>
  424.         </action>
  425.       </mousebind>
  426.     </context>
  427.     <context name="Left">
  428.       <mousebind action="Drag" button="Left">
  429.         <action name="Resize">
  430.           <edge>left</edge>
  431.         </action>
  432.       </mousebind>
  433.     </context>
  434.     <context name="Right">
  435.       <mousebind action="Drag" button="Left">
  436.         <action name="Resize">
  437.           <edge>right</edge>
  438.         </action>
  439.       </mousebind>
  440.     </context>
  441.     <context name="Bottom">
  442.       <mousebind action="Drag" button="Left">
  443.         <action name="Resize">
  444.           <edge>bottom</edge>
  445.         </action>
  446.       </mousebind>
  447.       <mousebind action="Press" button="Right">
  448.         <action name="Focus"/>
  449.         <action name="Raise"/>
  450.         <action name="ShowMenu">
  451.           <menu>client-menu</menu>
  452.         </action>
  453.       </mousebind>
  454.     </context>
  455.     <context name="TRCorner BRCorner TLCorner BLCorner">
  456.       <mousebind action="Press" button="Left">
  457.         <action name="Focus"/>
  458.         <action name="Raise"/>
  459.         <action name="Unshade"/>
  460.       </mousebind>
  461.       <mousebind action="Drag" button="Left">
  462.         <action name="Resize"/>
  463.       </mousebind>
  464.     </context>
  465.     <context name="Client">
  466.       <mousebind action="Press" button="Left">
  467.         <action name="Focus"/>
  468.         <action name="Raise"/>
  469.       </mousebind>
  470.       <mousebind action="Press" button="Middle">
  471.         <action name="Focus"/>
  472.         <action name="Raise"/>
  473.       </mousebind>
  474.       <mousebind action="Press" button="Right">
  475.         <action name="Focus"/>
  476.         <action name="Raise"/>
  477.       </mousebind>
  478.     </context>
  479.     <context name="Icon">
  480.       <mousebind action="Press" button="Left">
  481.         <action name="Focus"/>
  482.         <action name="Raise"/>
  483.         <action name="Unshade"/>
  484.         <action name="ShowMenu">
  485.           <menu>client-menu</menu>
  486.         </action>
  487.       </mousebind>
  488.       <mousebind action="Press" button="Right">
  489.         <action name="Focus"/>
  490.         <action name="Raise"/>
  491.         <action name="ShowMenu">
  492.           <menu>client-menu</menu>
  493.         </action>
  494.       </mousebind>
  495.     </context>
  496.     <context name="AllDesktops">
  497.       <mousebind action="Press" button="Left">
  498.         <action name="Focus"/>
  499.         <action name="Raise"/>
  500.         <action name="Unshade"/>
  501.       </mousebind>
  502.       <mousebind action="Click" button="Left">
  503.         <action name="ToggleOmnipresent"/>
  504.       </mousebind>
  505.     </context>
  506.     <context name="Shade">
  507.       <mousebind action="Press" button="Left">
  508.         <action name="Focus"/>
  509.         <action name="Raise"/>
  510.       </mousebind>
  511.       <mousebind action="Click" button="Left">
  512.         <action name="ToggleShade"/>
  513.       </mousebind>
  514.     </context>
  515.     <context name="Iconify">
  516.       <mousebind action="Press" button="Left">
  517.         <action name="Focus"/>
  518.         <action name="Raise"/>
  519.       </mousebind>
  520.       <mousebind action="Click" button="Left">
  521.         <action name="Iconify"/>
  522.       </mousebind>
  523.     </context>
  524.     <context name="Maximize">
  525.       <mousebind action="Press" button="Left">
  526.         <action name="Focus"/>
  527.         <action name="Raise"/>
  528.         <action name="Unshade"/>
  529.       </mousebind>
  530.       <mousebind action="Press" button="Middle">
  531.         <action name="Focus"/>
  532.         <action name="Raise"/>
  533.         <action name="Unshade"/>
  534.       </mousebind>
  535.       <mousebind action="Press" button="Right">
  536.         <action name="Focus"/>
  537.         <action name="Raise"/>
  538.         <action name="Unshade"/>
  539.       </mousebind>
  540.       <mousebind action="Click" button="Left">
  541.         <action name="ToggleMaximize"/>
  542.       </mousebind>
  543.       <mousebind action="Click" button="Middle">
  544.         <action name="ToggleMaximize">
  545.           <direction>vertical</direction>
  546.         </action>
  547.       </mousebind>
  548.       <mousebind action="Click" button="Right">
  549.         <action name="ToggleMaximize">
  550.           <direction>horizontal</direction>
  551.         </action>
  552.       </mousebind>
  553.     </context>
  554.     <context name="Close">
  555.       <mousebind action="Press" button="Left">
  556.         <action name="Focus"/>
  557.         <action name="Raise"/>
  558.         <action name="Unshade"/>
  559.       </mousebind>
  560.       <mousebind action="Click" button="Left">
  561.         <action name="Close"/>
  562.       </mousebind>
  563.     </context>
  564.     <context name="Desktop">
  565.       <mousebind action="Click" button="Up">
  566.         <action name="GoToDesktop">
  567.           <to>previous</to>
  568.         </action>
  569.       </mousebind>
  570.       <mousebind action="Click" button="Down">
  571.         <action name="GoToDesktop">
  572.           <to>next</to>
  573.         </action>
  574.       </mousebind>
  575.       <mousebind action="Click" button="A-Up">
  576.         <action name="GoToDesktop">
  577.           <to>previous</to>
  578.         </action>
  579.       </mousebind>
  580.       <mousebind action="Click" button="A-Down">
  581.         <action name="GoToDesktop">
  582.           <to>next</to>
  583.         </action>
  584.       </mousebind>
  585.       <mousebind action="Click" button="C-A-Up">
  586.         <action name="GoToDesktop">
  587.           <to>previous</to>
  588.         </action>
  589.       </mousebind>
  590.       <mousebind action="Click" button="C-A-Down">
  591.         <action name="GoToDesktop">
  592.           <to>next</to>
  593.         </action>
  594.       </mousebind>
  595.       <mousebind action="Press" button="Left">
  596.         <action name="Focus"/>
  597.         <action name="Raise"/>
  598.       </mousebind>
  599.       <mousebind action="Press" button="Right">
  600.         <action name="Focus"/>
  601.         <action name="Raise"/>
  602.       </mousebind>
  603.     </context>
  604.     <context name="Root">
  605.       <!-- Menus -->
  606.       <mousebind action="Press" button="Middle">
  607.         <action name="ShowMenu">
  608.           <menu>client-list-combined-menu</menu>
  609.         </action>
  610.       </mousebind>
  611.       <mousebind action="Press" button="Right">
  612.         <action name="ShowMenu">
  613.           <menu>root-menu</menu>
  614.         </action>
  615.       </mousebind>
  616.     </context>
  617.     <context name="MoveResize">
  618.       <mousebind action="Click" button="Up">
  619.         <action name="GoToDesktop">
  620.           <to>previous</to>
  621.         </action>
  622.       </mousebind>
  623.       <mousebind action="Click" button="Down">
  624.         <action name="GoToDesktop">
  625.           <to>next</to>
  626.         </action>
  627.       </mousebind>
  628.       <mousebind action="Click" button="A-Up">
  629.         <action name="GoToDesktop">
  630.           <to>previous</to>
  631.         </action>
  632.       </mousebind>
  633.       <mousebind action="Click" button="A-Down">
  634.         <action name="GoToDesktop">
  635.           <to>next</to>
  636.         </action>
  637.       </mousebind>
  638.     </context>
  639.   </mouse>
  640.   <!--- #################### -->
  641.   <!--- ####### MENU ####### -->
  642.   <!--- #################### -->
  643.   <menu>
  644.     <!-- You can specify more than one menu file in here and they are all loaded,
  645.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  646.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  647.     <file>menu.xml</file>
  648.     <hideDelay>200</hideDelay>
  649.     <!-- if a press-release lasts longer than this setting (in milliseconds), the
  650.       menu is hidden again -->
  651.     <middle>no</middle>
  652.     <!-- center submenus vertically about the parent entry -->
  653.     <submenuShowDelay>100</submenuShowDelay>
  654.     <!-- time to delay before showing a submenu after hovering over the parent
  655.       entry.
  656.       if this is a negative value, then the delay is infinite and the
  657.       submenu will not be shown until it is clicked on -->
  658.     <submenuHideDelay>400</submenuHideDelay>
  659.     <!-- time to delay before hiding a submenu when selecting another
  660.       entry in parent menu
  661.       if this is a negative value, then the delay is infinite and the
  662.       submenu will not be hidden until a different submenu is opened -->
  663.     <showIcons>yes</showIcons>
  664.     <!-- controls if icons appear in the client-list-(combined-)menu -->
  665.     <manageDesktops>yes</manageDesktops>
  666.     <!-- show the manage desktops section in the client-list-(combined-)menu -->
  667.   </menu>
  668.   <!--- #################### -->
  669.   <!--- ### APPLICATIONS ### -->
  670.   <!--- #################### -->
  671.   <applications>
  672.     <application name="xfce4-terminal">
  673.       <decor>no</decor>
  674.     </application>
  675.     <application class="Thunderbird">
  676.       <desktop>2</desktop>
  677.       <focus>no</focus>
  678.     </application>
  679.     <application name="mousepad">
  680.       <desktop>2</desktop>
  681.       <focus>no</focus>
  682.     </application>
  683.   </applications>
  684.   <!--- #################### -->
  685.   <!--- # FOCUS ON WINDOWS # -->
  686.   <!--- #################### -->
  687. #  <applications>
  688. #    <application class="*">
  689. #      <focus>yes</focus>
  690. #    </application>
  691. #  </applications>
  692. </openbox_config>
  693. <!--- #################### -->
  694. <!--- ###### EXAMPLE ##### -->
  695. <!--- #################### -->
  696. <!--
  697.  # this is an example with comments through out. use these to make your
  698.  # own rules, but without the comments of course.
  699.  # you may use one or more of the name/class/role/title/type rules to specify
  700.  # windows to match
  701.  
  702.  <application name="the window's _OB_APP_NAME property (see obxprop)"
  703.              class="the window's _OB_APP_CLASS property (see obxprop)"
  704.          groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  705.         groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  706.               role="the window's _OB_APP_ROLE property (see obxprop)"
  707.              title="the window's _OB_APP_TITLE property (see obxprop)"
  708.               type="the window's _OB_APP_TYPE property (see obxprob)..
  709.                      (if unspecified, then it is 'dialog' for child windows)">
  710.  # you may set only one of name/class/role/title/type, or you may use more
  711.  # than one together to restrict your matches.
  712.  
  713.  # the name, class, role, and title use simple wildcard matching such as those
  714.  # used by a shell. you can use * to match any characters and ? to match
  715.  # any single character.
  716.  
  717.  # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  718.  #    or desktop
  719.  
  720.  # when multiple rules match a window, they will all be applied, in the
  721.  # order that they appear in this list
  722.  
  723.  
  724.    # each rule element can be left out or set to 'default' to specify to not
  725.    # change that attribute of the window
  726.  
  727.    <decor>yes</decor>
  728.    # enable or disable window decorations
  729.  
  730.    <shade>no</shade>
  731.    # make the window shaded when it appears, or not
  732.  
  733.    <position force="no">
  734.      # the position is only used if both an x and y coordinate are provided
  735.      # (and not set to 'default')
  736.      # when force is "yes", then the window will be placed here even if it
  737.      # says you want it placed elsewhere.  this is to override buggy
  738.      # applications who refuse to behave
  739.      <x>center</x>
  740.      # a number like 50, or 'center' to center on screen. use a negative number
  741.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  742.      # the right edge (or bottom). use 'default' to specify using value
  743.      # provided by the application, or chosen by openbox, instead.
  744.      <y>200</y>
  745.      <monitor>1</monitor>
  746.      # specifies the monitor in a xinerama setup.
  747.      # 1 is the first head, or 'mouse' for wherever the mouse is
  748.    </position>
  749.  
  750.    <size>
  751.      # the size to make the window.
  752.      <width>20</width>
  753.      # a number like 20, or 'default' to use the size given by the application.
  754.      # you can use fractions such as 1/2 or percentages such as 75% in which
  755.      # case the value is relative to the size of the monitor that the window
  756.      # appears on.
  757.      <height>30%</height>
  758.    </size>
  759.  
  760.    <focus>yes</focus>
  761.    # if the window should try be given focus when it appears. if this is set
  762.    # to yes it doesn't guarantee the window will be given focus. some
  763.    # restrictions may apply, but Openbox will try to
  764.  
  765.    <desktop>1</desktop>
  766.    # 1 is the first desktop, 'all' for all desktops
  767.  
  768.    <layer>normal</layer>
  769.    # 'above', 'normal', or 'below'
  770.  
  771.    <iconic>no</iconic>
  772.    # make the window iconified when it appears, or not
  773.  
  774.    <skip_pager>no</skip_pager>
  775.    # asks to not be shown in pagers
  776.  
  777.    <skip_taskbar>no</skip_taskbar>
  778.    # asks to not be shown in taskbars. window cycling actions will also
  779.    # skip past such windows
  780.  
  781.    <fullscreen>yes</fullscreen>
  782.    # make the window in fullscreen mode when it appears
  783.  
  784.    <maximized>true</maximized>
  785.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  786.  </application>
  787.  
  788.  # end of the example
  789. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement