Advertisement
plirof2

LINUX-okkey - shortcuts rc.xml

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