Lubuntu OpenBox - Orange168/NotesOnReading GitHub Wiki

openbox

S Shift key C Control key A Alt key W Super key (Usually bound to the Windows key on keyboards which have one) M Meta key

Key bindings

<keyboard>
  <keybind key="A-F4">
    <action name="Close"/>
  </keybind>
  <keybind key="A-space">
    <action name="ShowMenu"><menu>client-menu</menu></action>
  </keybind>
</keyboard>

Keys

  • Find the key name you want use xev comand in a terminal
KeyRelease event, serial 36, synthetic NO, window 0x1e00001,
    root 0x7e, subw 0x0, time 29920856, (168,-7), root:(900,313),
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Menu is the name you press, keycode 135

This key can then be used as in the following example.

<keyboard>
  ...
  <keybind key="C-Menu S-F10">
    <action name="ShowMenu">
      <menu>root-menu</menu>
    </action>
  </keybind>
  ...
</keyboard>

Keys can also be specified by their numeric codes, 135 == 0x87 (8*16 + 7), the keycode for the menu key is 135, which is 0x87 hexadecimal.

<keyboard>
  ...
  <keybind key="C-0x87">
    <action name="ShowMenu">
      <menu>root-menu</menu>
    </action>
  </keybind>
  ...
</keyboard>

#####Key chains

Nesting key bindings in <keybind></keybind>,Here's an example:

  <keybind key="C-f">
    <keybind key="x">
      <action name="ToggleMaximizeFull"/>
    </keybind>
    <keybind key="s">
      <action name="ToggleShade"/>
    </keybind>
  </keybind>

Press C-f together,then you release everything and press x key to share Window

The key chain dialog

  • appear when you start key chains
  • disappear when you press the key no found inside the chains
Cancelling key chain
  • Too long without completing it ;
  • C-g to cancelling shortcut , The choice of this key is controlled by the in the section of the rc.xml configuration file.

C-g ...

Mouse bindings

From .config/openbox/lxde-rc.xml

<context name="Frame">
      <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>
      <mousebind button="A-Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Right" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="A-Middle" action="Press">
        <action name="Lower"/>
        <action name="FocusToBottom"/>
        <action name="Unfocus"/>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-S-Up" action="Click">
 </mousebind>
      <mousebind button="A-S-Down" action="Click">
        <action name="SendToDesktop">
          <to>next</to>
        </action>
      </mousebind>
    </context>

Application shortcut setting

<!-- Apps -->
    <keybind key="A-C-S-e">
      <action name="Execute">
        <command>gedit</command>
      </action>
    </keybind>

    <keybind key="A-C-S-i">
      <action name="Execute">
        <command>firefox</command>
      </action>
    </keybind>

[1]OpenBox.wiki

[[2]Lubunut for help][Lubunut for help] [Lubunut for help]: https://help.ubuntu.com/community/Lubuntu "Lubunut for help"

⚠️ **GitHub.com Fallback** ⚠️