Advertisement
taklertamas

Openbox rc.xml

Dec 4th, 2012
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 34.46 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>yes</underMouse>
  17.     <!-- move focus under the mouse, even when the mouse is not moving -->
  18.     <focusDelay>300</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>Active</monitor>
  32.   </placement>
  33.   <theme>
  34.     <name>AquanumbII</name>
  35.     <titleLayout/>
  36.     <!--
  37.      avaible characters are NDSLIMC, each can occur at most once.
  38.      N: window icon
  39.      L: window label (AKA title).
  40.      I: iconify
  41.      M: maximize
  42.      C: close
  43.      S: shade (roll up/down)
  44.      D: omnipresent (on all desktops).
  45.  -->
  46.     <keepBorder>no</keepBorder>
  47.     <animateIconify>no</animateIconify>
  48.     <font place="ActiveWindow">
  49.       <name>ATROX</name>
  50.       <size>1</size>
  51.       <!-- font size in points -->
  52.       <weight>Normal</weight>
  53.       <!-- 'bold' or 'normal' -->
  54.       <slant>Normal</slant>
  55.       <!-- 'italic' or 'normal' -->
  56.     </font>
  57.     <font place="InactiveWindow">
  58.       <name>ATROX</name>
  59.       <size>1</size>
  60.       <!-- font size in points -->
  61.       <weight>Normal</weight>
  62.       <!-- 'bold' or 'normal' -->
  63.       <slant>Normal</slant>
  64.       <!-- 'italic' or 'normal' -->
  65.     </font>
  66.     <font place="MenuHeader">
  67.       <name>ATROX</name>
  68.       <size>1</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="MenuItem">
  76.       <name>Ubuntu</name>
  77.       <size>8</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="OnScreenDisplay">
  85.       <name>Ubuntu</name>
  86.       <size>8</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.   </theme>
  94.   <desktops>
  95.     <!-- this stuff is only used at startup, pagers allow you to change them
  96.       during a session
  97.  
  98.       these are default values to use when other ones are not already set
  99.       by other applications, or saved in your session
  100.  
  101.       use obconf if you want to change these without having to log out
  102.       and back in -->
  103.     <number>8</number>
  104.     <firstdesk>1</firstdesk>
  105.     <names>
  106.       <name>WEB</name>
  107.       <name>GEANY</name>
  108.       <name>CMD</name>
  109.       <name>TERM</name>
  110.       <name>MEDIA</name>
  111.       <name>INKSCP</name>
  112.       <name>GIMP</name>
  113.       <name>AGAVE</name>
  114.     </names>
  115.     <popupTime>505</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>Always</popupShow>
  122.     <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  123.     <popupPosition>Top</popupPosition>
  124.     <!-- 'Center' or 'Top' -->
  125.     <popupFixedPosition>
  126.       <x>5</x>
  127.       <y>8</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>20</top>
  136.     <bottom>2</bottom>
  137.     <left>2</left>
  138.     <right>2</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-F5">
  230.       <action name="Desktop">
  231.         <desktop>5</desktop>
  232.       </action>
  233.     </keybind>
  234.     <keybind key="W-F6">
  235.       <action name="Desktop">
  236.         <desktop>6</desktop>
  237.       </action>
  238.     </keybind>
  239.     <keybind key="W-F7">
  240.       <action name="Desktop">
  241.         <desktop>7</desktop>
  242.       </action>
  243.     </keybind>
  244.     <keybind key="W-F8">
  245.       <action name="Desktop">
  246.         <desktop>8</desktop>
  247.       </action>
  248.     </keybind>
  249.     <keybind key="W-d">
  250.       <action name="ToggleShowDesktop"/>
  251.     </keybind>
  252.     <!-- Keybindings for windows -->
  253.     <!--keybindings for volume controll-->
  254.     <keybind key="XF86AudioLowerVolume">
  255.       <action name="Execute">
  256.         <execute>amixer -q set Master 1- unmute</execute>
  257.       </action>
  258.     </keybind>
  259.     <keybind key="XF86AudioRaiseVolume">
  260.       <action name="Execute">
  261.         <execute>amixer -q set Master 1+ unmute</execute>
  262.       </action>
  263.     </keybind>
  264.     <keybind key="XF86AudioMute">
  265.       <action name="Execute">
  266.         <execute>amixer -q set Master 0</execute>
  267.       </action>
  268.     </keybind>
  269.     <!-- Keybindings for windows -->
  270.     <keybind key="A-F4">
  271.       <action name="Close"/>
  272.     </keybind>
  273.     <keybind key="A-Escape">
  274.       <action name="Lower"/>
  275.       <action name="FocusToBottom"/>
  276.       <action name="Unfocus"/>
  277.     </keybind>
  278.     <keybind key="A-space">
  279.       <action name="ShowMenu">
  280.         <menu>client-menu</menu>
  281.       </action>
  282.     </keybind>
  283.     <keybind key="Print">
  284.       <action name="Execute">
  285.         <execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/képek/ &amp; viewnior ~/képek/$f'</execute>
  286.       </action>
  287.     </keybind>
  288.     <keybind key="A-Print">
  289.       <action name="Execute">
  290.         <execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Képek/ &amp; viewnior ~/Képek/$f'</execute>
  291.       </action>
  292.     </keybind>
  293.     <!-- Keybindings for window switching -->
  294.     <keybind key="A-Tab">
  295.       <action name="NextWindow"/>
  296.     </keybind>
  297.     <keybind key="A-S-Tab">
  298.       <action name="PreviousWindow"/>
  299.     </keybind>
  300.     <keybind key="C-A-Tab">
  301.       <action name="NextWindow">
  302.         <panels>yes</panels>
  303.         <desktop>yes</desktop>
  304.       </action>
  305.     </keybind>
  306.     <!-- Keybindings for running applications -->
  307.     <keybind key="A-F2">
  308.       <action name="Execute">
  309.         <startupnotify>
  310.           <enabled>true</enabled>
  311.           <name>Run Program</name>
  312.         </startupnotify>
  313.         <command>gmrun</command>
  314.       </action>
  315.     </keybind>
  316.     <keybind key="A-F3">
  317.       <action name="Execute">
  318.         <startupnotify>
  319.           <enabled>true</enabled>
  320.           <name>dmenu-bind</name>
  321.         </startupnotify>
  322.         <command>~/.config/dmenu/dmenu-bind.sh</command>
  323.       </action>
  324.     </keybind>
  325.     <!--Window tiling actions-->
  326.     <keybind key="W-Up">
  327.       <action name="MaximizeFull"/>
  328.       <action name="Maximize"/>
  329.     </keybind>
  330.     <keybind key="W-Down">
  331.       <action name="UnmaximizeFull"/>
  332.       <action name="Unmaximize"/>
  333.     </keybind>
  334.     <keybind key="W-Left">
  335.       <action name="UnmaximizeFull"/>
  336.       <action name="MaximizeVert"/>
  337.       <action name="MoveResizeTo">
  338.         <width>640</width>
  339.       </action>
  340.       <action name="MoveToEdgeWest"/>
  341.     </keybind>
  342.     <keybind key="W-Right">
  343.       <action name="UnmaximizeFull"/>
  344.       <action name="MaximizeVert"/>
  345.       <action name="MoveResizeTo">
  346.         <width>640</width>
  347.       </action>
  348.       <action name="MoveToEdgeEast"/>
  349.     </keybind>
  350.     <keybind key="W-f">
  351.       <action name="Execute">
  352.         <startupnotify>
  353.           <enabled>true</enabled>
  354.           <name>pcmanfm</name>
  355.         </startupnotify>
  356.         <command>pcmanfm</command>
  357.       </action>
  358.     </keybind>
  359.     <keybind key="W-C-m">
  360.       <action name="Execute">
  361.         <startupnotify>
  362.           <enabled>true</enabled>
  363.           <name>claws-mail</name>
  364.         </startupnotify>
  365.         <command>claws-mail</command>
  366.       </action>
  367.     </keybind>
  368.     <keybind key="C-A-c">
  369.       <action name="Execute">
  370.         <startupnotify>
  371.           <enabled>true</enabled>
  372.           <name>gnome-commander</name>
  373.         </startupnotify>
  374.         <command>gnome-commander</command>
  375.       </action>
  376.     </keybind>
  377.     <keybind key="W-t">
  378.       <action name="Execute">
  379.         <startupnotify>
  380.           <enabled>true</enabled>
  381.           <name>Terminal</name>
  382.         </startupnotify>
  383.         <command>terminator</command>
  384.       </action>
  385.     </keybind>
  386.     <keybind key="W-w">
  387.       <action name="Execute">
  388.         <startupnotify>
  389.           <enabled>true</enabled>
  390.           <name>browser</name>
  391.         </startupnotify>
  392.         <command>google-chrome</command>
  393.       </action>
  394.     </keybind>
  395.     <keybind key="W-s">
  396.       <action name="Execute">
  397.         <startupnotify>
  398.           <enabled>true</enabled>
  399.           <name>gksu synaptic</name>
  400.         </startupnotify>
  401.         <command>gksudo synaptic</command>
  402.       </action>
  403.     </keybind>
  404.     <keybind key="W-b">
  405.       <action name="Execute">
  406.         <startupnotify>
  407.           <enabled>true</enabled>
  408.           <name>brasero</name>
  409.         </startupnotify>
  410.         <command>brasero</command>
  411.       </action>
  412.     </keybind>
  413.     <keybind key="W-l">
  414.       <action name="Execute">
  415.         <startupnotify>
  416.           <enabled>true</enabled>
  417.           <name>Lock screen</name>
  418.         </startupnotify>
  419.         <command>cb-lock</command>
  420.       </action>
  421.     </keybind>
  422.     <keybind key="W-e">
  423.       <action name="Execute">
  424.         <startupnotify>
  425.           <enabled>true</enabled>
  426.           <name>Editor</name>
  427.         </startupnotify>
  428.         <command>geany</command>
  429.       </action>
  430.     </keybind>
  431.     <keybind key="W-m">
  432.       <action name="Execute">
  433.         <startupnotify>
  434.           <enabled>true</enabled>
  435.           <name>Mediaplayer</name>
  436.         </startupnotify>
  437.         <command>vlc</command>
  438.       </action>
  439.     </keybind>
  440.     <keybind key="W-v">
  441.       <action name="Execute">
  442.         <startupnotify>
  443.           <enabled>true</enabled>
  444.           <name>Volume</name>
  445.         </startupnotify>
  446.         <command>xfce4-mixer</command>
  447.       </action>
  448.     </keybind>
  449.     <keybind key="W-x">
  450.       <action name="Execute">
  451.         <startupnotify>
  452.           <enabled>true</enabled>
  453.           <name>Logout</name>
  454.         </startupnotify>
  455.         <command>openbox-logout</command>
  456.       </action>
  457.     </keybind>
  458.     <keybind key="C-A-r">
  459.       <action name="Execute">
  460.         <startupnotify>
  461.           <enabled>true</enabled>
  462.           <name>Logout</name>
  463.         </startupnotify>
  464.         <command>openbox-restart</command>
  465.       </action>
  466.     </keybind>
  467.     <keybind key="W-r">
  468.       <action name="Execute">
  469.         <startupnotify>
  470.           <enabled>true</enabled>
  471.           <name>Muzzik</name>
  472.         </startupnotify>
  473.         <command>rhythmbox</command>
  474.       </action>
  475.     </keybind>
  476.     <keybind key="W-Tab">
  477.       <action name="ShowMenu">
  478.         <menu>client-list-combined-menu</menu>
  479.       </action>
  480.     </keybind>
  481.     <keybind key="W-space">
  482.       <action name="ShowMenu">
  483.         <menu>root-menu</menu>
  484.       </action>
  485.     </keybind>
  486.     <keybind key="C-A-q">
  487.       <action name="Execute">
  488.         <prompt>Biztos, hogy erÅ‘szakosan bezárod ezt az alkalmazást?</prompt>
  489.         <startupnotify>
  490.           <enabled>yes</enabled>
  491.           <name>xkill</name>
  492.           <wmclass>gmrun</wmclass>
  493.         </startupnotify>
  494.         <command>xkill</command>
  495.       </action>
  496.     </keybind>
  497.     <keybind key="W-g">
  498.       <action name="Execute">
  499.         <startupnotify>
  500.           <enabled>true</enabled>
  501.           <name>GIMP</name>
  502.         </startupnotify>
  503.         <command>gimp</command>
  504.       </action>
  505.     </keybind>
  506.   </keyboard>
  507.   <mouse>
  508.     <dragThreshold>8</dragThreshold>
  509.     <!-- number of pixels the mouse must move before a drag begins -->
  510.     <doubleClickTime>300</doubleClickTime>
  511.     <!-- in milliseconds (1000 = 1 second) -->
  512.     <screenEdgeWarpTime>400</screenEdgeWarpTime>
  513.     <!-- Time before changing desktops when the pointer touches the edge of the
  514.       screen while moving a window, in milliseconds (1000 = 1 second).
  515.       Set this to 0 to disable warping -->
  516.     <context name="Frame">
  517.       <mousebind button="A-Left" action="Press">
  518.         <action name="Focus"/>
  519.         <action name="Raise"/>
  520.       </mousebind>
  521.       <mousebind button="A-Left" action="Click">
  522.         <action name="Unshade"/>
  523.       </mousebind>
  524.       <mousebind button="A-Left" action="Drag">
  525.         <action name="Move"/>
  526.       </mousebind>
  527.       <mousebind button="A-Right" action="Press">
  528.         <action name="Focus"/>
  529.         <action name="Raise"/>
  530.         <action name="Unshade"/>
  531.       </mousebind>
  532.       <mousebind button="A-Right" action="Drag">
  533.         <action name="Resize"/>
  534.       </mousebind>
  535.       <mousebind button="A-Middle" action="Press">
  536.         <action name="Lower"/>
  537.         <action name="FocusToBottom"/>
  538.         <action name="Unfocus"/>
  539.       </mousebind>
  540.       <mousebind button="A-Up" action="Click">
  541.         <action name="DesktopPrevious"/>
  542.       </mousebind>
  543.       <mousebind button="A-Down" action="Click">
  544.         <action name="DesktopNext"/>
  545.       </mousebind>
  546.       <mousebind button="C-A-Up" action="Click">
  547.         <action name="DesktopPrevious"/>
  548.       </mousebind>
  549.       <mousebind button="C-A-Down" action="Click">
  550.         <action name="DesktopNext"/>
  551.       </mousebind>
  552.       <mousebind button="A-S-Up" action="Click">
  553.         <action name="SendToDesktopPrevious"/>
  554.       </mousebind>
  555.       <mousebind button="A-S-Down" action="Click">
  556.         <action name="SendToDesktopNext"/>
  557.       </mousebind>
  558.     </context>
  559.     <context name="Titlebar">
  560.       <mousebind button="Left" action="Press">
  561.         <action name="Focus"/>
  562.         <action name="Raise"/>
  563.       </mousebind>
  564.       <mousebind button="Left" action="Drag">
  565.         <action name="Move"/>
  566.       </mousebind>
  567.       <mousebind button="Left" action="DoubleClick">
  568.         <action name="ToggleShade"/>
  569.       </mousebind>
  570.       <mousebind button="Middle" action="Press">
  571.         <action name="Lower"/>
  572.         <action name="FocusToBottom"/>
  573.         <action name="Unfocus"/>
  574.       </mousebind>
  575.       <mousebind button="Up" action="Click">
  576.         <action name="Shade"/>
  577.         <action name="FocusToBottom"/>
  578.         <action name="Unfocus"/>
  579.         <action name="Lower"/>
  580.       </mousebind>
  581.       <mousebind button="Down" action="Click">
  582.         <action name="Unshade"/>
  583.         <action name="Raise"/>
  584.       </mousebind>
  585.       <mousebind button="Right" action="Press">
  586.         <action name="Focus"/>
  587.         <action name="Raise"/>
  588.         <action name="ShowMenu">
  589.           <menu>client-menu</menu>
  590.         </action>
  591.       </mousebind>
  592.     </context>
  593.     <context name="Top">
  594.       <mousebind button="Left" action="Press">
  595.         <action name="Focus"/>
  596.         <action name="Raise"/>
  597.         <action name="Unshade"/>
  598.       </mousebind>
  599.       <mousebind button="Left" action="Drag">
  600.         <action name="Resize">
  601.           <edge>top</edge>
  602.         </action>
  603.       </mousebind>
  604.     </context>
  605.     <context name="Left">
  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.           <edge>left</edge>
  613.         </action>
  614.       </mousebind>
  615.     </context>
  616.     <context name="Right">
  617.       <mousebind button="Left" action="Press">
  618.         <action name="Focus"/>
  619.         <action name="Raise"/>
  620.       </mousebind>
  621.       <mousebind button="Left" action="Drag">
  622.         <action name="Resize">
  623.           <edge>right</edge>
  624.         </action>
  625.       </mousebind>
  626.     </context>
  627.     <context name="Bottom">
  628.       <mousebind button="Left" action="Press">
  629.         <action name="Focus"/>
  630.         <action name="Raise"/>
  631.       </mousebind>
  632.       <mousebind button="Left" action="Drag">
  633.         <action name="Resize">
  634.           <edge>bottom</edge>
  635.         </action>
  636.       </mousebind>
  637.       <mousebind button="Middle" action="Press">
  638.         <action name="Lower"/>
  639.         <action name="FocusToBottom"/>
  640.         <action name="Unfocus"/>
  641.       </mousebind>
  642.       <mousebind button="Right" action="Press">
  643.         <action name="Focus"/>
  644.         <action name="Raise"/>
  645.         <action name="ShowMenu">
  646.           <menu>client-menu</menu>
  647.         </action>
  648.       </mousebind>
  649.     </context>
  650.     <context name="BLCorner">
  651.       <mousebind button="Left" action="Press">
  652.         <action name="Focus"/>
  653.         <action name="Raise"/>
  654.       </mousebind>
  655.       <mousebind button="Left" action="Drag">
  656.         <action name="Resize"/>
  657.       </mousebind>
  658.     </context>
  659.     <context name="BRCorner">
  660.       <mousebind button="Left" action="Press">
  661.         <action name="Focus"/>
  662.         <action name="Raise"/>
  663.       </mousebind>
  664.       <mousebind button="Left" action="Drag">
  665.         <action name="Resize"/>
  666.       </mousebind>
  667.     </context>
  668.     <context name="TLCorner">
  669.       <mousebind button="Left" action="Press">
  670.         <action name="Focus"/>
  671.         <action name="Raise"/>
  672.         <action name="Unshade"/>
  673.       </mousebind>
  674.       <mousebind button="Left" action="Drag">
  675.         <action name="Resize"/>
  676.       </mousebind>
  677.     </context>
  678.     <context name="TRCorner">
  679.       <mousebind button="Left" action="Press">
  680.         <action name="Focus"/>
  681.         <action name="Raise"/>
  682.         <action name="Unshade"/>
  683.       </mousebind>
  684.       <mousebind button="Left" action="Drag">
  685.         <action name="Resize"/>
  686.       </mousebind>
  687.     </context>
  688.     <context name="Client">
  689.       <mousebind button="Left" action="Press">
  690.         <action name="Focus"/>
  691.         <action name="Raise"/>
  692.       </mousebind>
  693.       <mousebind button="Middle" action="Press">
  694.         <action name="Focus"/>
  695.         <action name="Raise"/>
  696.       </mousebind>
  697.       <mousebind button="Right" action="Press">
  698.         <action name="Focus"/>
  699.         <action name="Raise"/>
  700.       </mousebind>
  701.     </context>
  702.     <context name="Icon">
  703.       <mousebind button="Left" action="Press">
  704.         <action name="Focus"/>
  705.         <action name="Raise"/>
  706.         <action name="Unshade"/>
  707.         <action name="ShowMenu">
  708.           <menu>client-menu</menu>
  709.         </action>
  710.       </mousebind>
  711.       <mousebind button="Right" action="Press">
  712.         <action name="Focus"/>
  713.         <action name="Raise"/>
  714.         <action name="ShowMenu">
  715.           <menu>client-menu</menu>
  716.         </action>
  717.       </mousebind>
  718.     </context>
  719.     <context name="AllDesktops">
  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="ToggleOmnipresent"/>
  727.       </mousebind>
  728.     </context>
  729.     <context name="Shade">
  730.       <mousebind button="Left" action="Press">
  731.         <action name="Focus"/>
  732.         <action name="Raise"/>
  733.       </mousebind>
  734.       <mousebind button="Left" action="Click">
  735.         <action name="ToggleShade"/>
  736.       </mousebind>
  737.     </context>
  738.     <context name="Iconify">
  739.       <mousebind button="Left" action="Press">
  740.         <action name="Focus"/>
  741.         <action name="Raise"/>
  742.       </mousebind>
  743.       <mousebind button="Left" action="Click">
  744.         <action name="Iconify"/>
  745.       </mousebind>
  746.     </context>
  747.     <context name="Maximize">
  748.       <mousebind button="Left" action="Press">
  749.         <action name="Focus"/>
  750.         <action name="Raise"/>
  751.         <action name="Unshade"/>
  752.       </mousebind>
  753.       <mousebind button="Middle" action="Press">
  754.         <action name="Focus"/>
  755.         <action name="Raise"/>
  756.         <action name="Unshade"/>
  757.       </mousebind>
  758.       <mousebind button="Right" action="Press">
  759.         <action name="Focus"/>
  760.         <action name="Raise"/>
  761.         <action name="Unshade"/>
  762.       </mousebind>
  763.       <mousebind button="Left" action="Click">
  764.         <action name="ToggleMaximizeFull"/>
  765.       </mousebind>
  766.       <mousebind button="Middle" action="Click">
  767.         <action name="ToggleMaximizeVert"/>
  768.       </mousebind>
  769.       <mousebind button="Right" action="Click">
  770.         <action name="ToggleMaximizeHorz"/>
  771.       </mousebind>
  772.     </context>
  773.     <context name="Close">
  774.       <mousebind button="Left" action="Press">
  775.         <action name="Focus"/>
  776.         <action name="Raise"/>
  777.         <action name="Unshade"/>
  778.       </mousebind>
  779.       <mousebind button="Left" action="Click">
  780.         <action name="Close"/>
  781.       </mousebind>
  782.     </context>
  783.     <context name="Desktop">
  784.       <mousebind button="Up" action="Click">
  785.         <action name="DesktopPrevious"/>
  786.       </mousebind>
  787.       <mousebind button="Down" action="Click">
  788.         <action name="DesktopNext"/>
  789.       </mousebind>
  790.       <mousebind button="A-Up" action="Click">
  791.         <action name="DesktopPrevious"/>
  792.       </mousebind>
  793.       <mousebind button="A-Down" action="Click">
  794.         <action name="DesktopNext"/>
  795.       </mousebind>
  796.       <mousebind button="C-A-Up" action="Click">
  797.         <action name="DesktopPrevious"/>
  798.       </mousebind>
  799.       <mousebind button="C-A-Down" action="Click">
  800.         <action name="DesktopNext"/>
  801.       </mousebind>
  802.       <mousebind button="Left" action="Press">
  803.         <action name="Focus"/>
  804.         <action name="Raise"/>
  805.       </mousebind>
  806.     </context>
  807.     <context name="Root">
  808.       <!-- Menus -->
  809.       <mousebind button="Middle" action="Press">
  810.         <action name="ShowMenu">
  811.           <menu>client-list-combined-menu</menu>
  812.         </action>
  813.       </mousebind>
  814.       <mousebind button="Right" action="Press">
  815.         <action name="ShowMenu">
  816.           <menu>root-menu</menu>
  817.         </action>
  818.       </mousebind>
  819.     </context>
  820.     <context name="MoveResize">
  821.       <mousebind button="Up" action="Click">
  822.         <action name="DesktopPrevious"/>
  823.       </mousebind>
  824.       <mousebind button="Down" action="Click">
  825.         <action name="DesktopNext"/>
  826.       </mousebind>
  827.       <mousebind button="A-Up" action="Click">
  828.         <action name="DesktopPrevious"/>
  829.       </mousebind>
  830.       <mousebind button="A-Down" action="Click">
  831.         <action name="DesktopNext"/>
  832.       </mousebind>
  833.     </context>
  834.   </mouse>
  835.   <menu>
  836.     <!-- You can specify more than one menu file in here and they are all loaded,
  837.       just don't make menu ids clash or, well, it'll be kind of pointless -->
  838.     <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  839.     <!-- system menu files on Debian systems -->
  840.     <file>/var/lib/openbox/debian-menu.xml</file>
  841.     <file>debian-menu.xml</file>
  842.     <file>menu.xml</file>
  843.     <hideDelay>200</hideDelay>
  844.     <middle>no</middle>
  845.     <submenuShowDelay>100</submenuShowDelay>
  846.     <applicationIcons>yes</applicationIcons>
  847.   </menu>
  848.   <applications>
  849.     <!--
  850.  # this is an example with comments through out. use these to make your
  851.  # own rules, but without the comments of course.
  852.  
  853.  <application name="first element of window's WM_CLASS property (see xprop)"
  854.              class="second element of window's WM_CLASS property (see xprop)"
  855.               role="the window's WM_WINDOW_ROLE property (see xprop)">
  856.  # the name or the class can be set, or both. this is used to match
  857.  # windows when they appear. role can optionally be set as well, to
  858.  # further restrict your matches.
  859.  
  860.  # the name, class, and role use simple wildcard matching such as those
  861.  # used by a shell. you can use * to match any characters and ? to match
  862.  # any single character.
  863.  
  864.  # when multiple rules match a window, they will all be applied, in the
  865.  # order that they appear in this list
  866.  
  867.  
  868.    # each element can be left out or set to 'default' to specify to not
  869.    # change that attribute of the window
  870.  
  871.    <decor>yes</decor>
  872.    # enable or disable window decorations
  873.  
  874.    <shade>no</shade>
  875.    # make the window shaded when it appears, or not
  876.  
  877.    <position>
  878.      # the position is only used if both an x and y coordinate are provided
  879.      # (and not set to 'default')
  880.      <x>center</x>
  881.      # a number like 50, or 'center' to center on screen. use a negative number
  882.      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  883.      # right edge (or bottom).
  884.      <y>200</y>
  885.      <monitor>1</monitor>
  886.      # specifies the monitor in a xinerama setup.
  887.      # 1 is the first head, or 'mouse' for wherever the mouse is
  888.    </position>
  889.  
  890.    <focus>yes</focus>
  891.    # if the window should try be given focus when it appears. if this is set
  892.    # to yes it doesn't guarantee the window will be given focus. some
  893.    # restrictions may apply, but Openbox will try to
  894.  
  895.    <desktop>1</desktop>
  896.    # 1 is the first desktop, 'all' for all desktops
  897.  
  898.    <layer>normal</layer>
  899.    # 'above', 'normal', or 'below'
  900.  
  901.    <iconic>no</iconic>
  902.    # make the window iconified when it appears, or not
  903.  
  904.    <skip_pager>no</skip_pager>
  905.    # asks to not be shown in pagers
  906.  
  907.    <skip_taskbar>no</skip_taskbar>
  908.    # asks to not be shown in taskbars. window cycling actions will also
  909.    # skip past such windows
  910.  
  911.    <fullscreen>yes</fullscreen>
  912.    # make the window in fullscreen mode when it appears
  913.  
  914.    <maximized>true</maximized>
  915.    # 'Horizontal', 'Vertical' or boolean (yes/no)
  916.  </application>
  917.  
  918.  # end of the example
  919. -->
  920.     <application name="claws-mail">
  921.       <decor>no</decor>
  922.       <shade>no</shade>
  923.       <skip_pager>no</skip_pager>
  924.       <skip_taskbar>no</skip_taskbar>
  925.       <fullscreen>no</fullscreen>
  926.       <maximized>yes</maximized>
  927.       <desktop>1</desktop>
  928.     </application>
  929.     <application name="gmessage">
  930.       <decor>yes</decor>
  931.       <shade>no</shade>
  932.       <skip_pager>yes</skip_pager>
  933.       <skip_taskbar>yes</skip_taskbar>
  934.       <fullscreen>no</fullscreen>
  935.       <maximized>no</maximized>
  936.     </application>
  937.     <application name="openbox-logout">
  938.       <decor>no</decor>
  939.       <shade>no</shade>
  940.       <skip_pager>yes</skip_pager>
  941.       <fullscreen>no</fullscreen>
  942.       <maximized>no</maximized>
  943.       <layer>above</layer>
  944.     </application>
  945.     <application name="gedit">
  946.       <decor>no</decor>
  947.       <shade>no</shade>
  948.       <skip_pager>no</skip_pager>
  949.       <skip_taskbar>no</skip_taskbar>
  950.       <fullscreen>no</fullscreen>
  951.       <maximized>yes</maximized>
  952.       <focus>yes</focus>
  953.     </application>
  954.     <application name="gnome-commander">
  955.       <decor>no</decor>
  956.       <shade>no</shade>
  957.       <skip_pager>no</skip_pager>
  958.       <skip_taskbar>no</skip_taskbar>
  959.       <fullscreen>no</fullscreen>
  960.       <maximized>yes</maximized>
  961.       <desktop>3</desktop>
  962.     </application>
  963.     <application name="google-chrome">
  964.       <decor>yes</decor>
  965.       <shade>no</shade>
  966.       <skip_pager>no</skip_pager>
  967.       <skip_taskbar>no</skip_taskbar>
  968.       <fullscreen>no</fullscreen>
  969.       <maximized>yes</maximized>
  970.       <desktop>1</desktop>
  971.       <focus>yes</focus>
  972.     </application>
  973.     <application name="midori">
  974.       <decor>yes</decor>
  975.       <shade>no</shade>
  976.       <skip_pager>no</skip_pager>
  977.       <skip_taskbar>no</skip_taskbar>
  978.       <fullscreen>no</fullscreen>
  979.       <maximized>no</maximized>
  980.       <desktop>1</desktop>
  981.       <focus>yes</focus>
  982.     </application>
  983.     <application name="terminator">
  984.       <decor>yes</decor>
  985.       <shade>no</shade>
  986.       <skip_pager>no</skip_pager>
  987.       <skip_taskbar>no</skip_taskbar>
  988.       <fullscreen>no</fullscreen>
  989.       <maximized>no</maximized>
  990.       <focus>yes</focus>
  991.     </application>
  992.     <application name="inkscape">
  993.       <decor>yes</decor>
  994.       <shade>no</shade>
  995.       <skip_pager>no</skip_pager>
  996.       <skip_taskbar>no</skip_taskbar>
  997.       <fullscreen>no</fullscreen>
  998.       <maximized>no</maximized>
  999.       <desktop>6</desktop>
  1000.       <focus>yes</focus>
  1001.     </application>
  1002.     <application name="pcmanfm">
  1003.       <decor>yes</decor>
  1004.       <shade>no</shade>
  1005.       <skip_pager>no</skip_pager>
  1006.       <skip_taskbar>no</skip_taskbar>
  1007.       <position force="no">
  1008.         <x>center</x>
  1009.         <y>center</y>
  1010.       </position>
  1011.       <fullscreen>no</fullscreen>
  1012.       <maximized>no</maximized>
  1013.       <focus>yes</focus>
  1014.     </application>
  1015.     <application name="geany">
  1016.       <decor>no</decor>
  1017.       <shade>no</shade>
  1018.       <maximized>yes</maximized>
  1019.       <desktop>2</desktop>
  1020.       <skip_pager>no</skip_pager>
  1021.       <skip_taskbar>no</skip_taskbar>
  1022.       <position force="yes">
  1023.         <x>center</x>
  1024.         <y>center</y>
  1025.       </position>
  1026.       <fullscreen>no</fullscreen>
  1027.       <maximized>no</maximized>
  1028.       <focus>yes</focus>
  1029.     </application>
  1030.     <application name="vlc">
  1031.       <decor>yes</decor>
  1032.       <shade>no</shade>
  1033.       <skip_pager>no</skip_pager>
  1034.       <skip_taskbar>no</skip_taskbar>
  1035.       <position force="no">
  1036.         <x>center</x>
  1037.         <y>center</y>
  1038.       </position>
  1039.       <fullscreen>no</fullscreen>
  1040.       <maximized>no</maximized>
  1041.       <focus>yes</focus>
  1042.     </application>
  1043.     <application name="rhythmbox">
  1044.       <decor>no</decor>
  1045.       <shade>no</shade>
  1046.       <skip_pager>no</skip_pager>
  1047.       <skip_taskbar>no</skip_taskbar>
  1048.       <desktop>5</desktop>
  1049.       <position force="no">
  1050.         <x>center</x>
  1051.         <y>center</y>
  1052.       </position>
  1053.       <fullscreen>no</fullscreen>
  1054.       <maximized>no</maximized>
  1055.       <focus>yes</focus>
  1056.     </application>
  1057.     <application name="xeyes">
  1058.       <decor>no</decor>
  1059.       <shade>no</shade>
  1060.       <skip_pager>no</skip_pager>
  1061.       <skip_taskbar>no</skip_taskbar>
  1062.       <position force="no">
  1063.         <x>center</x>
  1064.         <y>center</y>
  1065.       </position>
  1066.       <fullscreen>no</fullscreen>
  1067.       <maximized>no</maximized>
  1068.       <focus>yes</focus>
  1069.     </application>
  1070.     <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
  1071.       <decor>no</decor>
  1072.       <maximized>vertical</maximized>
  1073.       <fullscreen>no</fullscreen>
  1074.       <skip_taskbar>yes</skip_taskbar>
  1075.       <skip_pager>yes</skip_pager>
  1076.       <position force="yes">
  1077.         <x>0</x>
  1078.         <y>0</y>
  1079.       </position>
  1080.     </application>
  1081.     <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
  1082.       <skip_taskbar>yes</skip_taskbar>
  1083.       <skip_pager>yes</skip_pager>
  1084.       <decor>no</decor>
  1085.       <maximized>vertical</maximized>
  1086.       <layer>default</layer>
  1087.       <position force="yes">
  1088.         <x>1060</x>
  1089.         <y>0</y>
  1090.       </position>
  1091.     </application>
  1092.     <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
  1093.       <decor>no</decor>
  1094.       <maximized>vertical</maximized>
  1095.       <fullscreen>no</fullscreen>
  1096.       <skip_taskbar>yes</skip_taskbar>
  1097.       <skip_pager>yes</skip_pager>
  1098.       <position force="yes">
  1099.         <x>0</x>
  1100.         <y>0</y>
  1101.       </position>
  1102.     </application>
  1103.     <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
  1104.       <skip_taskbar>yes</skip_taskbar>
  1105.       <skip_pager>yes</skip_pager>
  1106.       <decor>no</decor>
  1107.       <maximized>vertical</maximized>
  1108.       <layer>default</layer>
  1109.       <position force="yes">
  1110.         <x>1060</x>
  1111.         <y>0</y>
  1112.       </position>
  1113.     </application>
  1114.     <application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
  1115.       <decor>yes</decor>
  1116.       <maximized>vertical</maximized>
  1117.       <position force="yes">
  1118.         <x>center</x>
  1119.         <y>center</y>
  1120.       </position>
  1121.     </application>
  1122.     <application class="Gimp" name="gimp" role="gimp-layer-new" type="dialog">
  1123.       <decor>yes</decor>
  1124.       <maximized>no</maximized>
  1125.       <skip_taskbar>yes</skip_taskbar>
  1126.       <skip_pager>yes</skip_pager>
  1127.     </application>
  1128.   </applications>
  1129. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement