Define custom shortcuts in Lubuntu - lightblueseas/linuxstuff GitHub Wiki

You can define custom or alternative shortcuts in lubuntu.

For do this you have to extend the file ~/.config/openbox/lubuntu-rc.xml

Note: make a backup from this config file before you make any changes.

Define custom shortcut for call the shutdown dialog

For create a shortcut for call the shutdown dialog with the shortcut "Window Logo + End".

  1. Open xml-file ~/.config/openbox/lubuntu-rc.xml

  2. Find the keyboard area to set keybind element.

  3. Add following code as last entry in the keyboard area:

   <!-- Alternative for shutdown dialog on "Window Logo + End"-->
   <keybind key="W-End">
     <action name="Execute">
       <command>lxsession-default quit</command>
     </action>
   </keybind>
  1. Save the xml-file ~/.config/openbox/lubuntu-rc.xml

  2. Open a terminal and call

openbox --reconfigure

       if this didnt help you can alternative logout and login.

  1. Now you can use defined custom shortcut

Define custom shortcut for lock your screen

For create a shortcut for lock your screen with the shortcut "Window Logo + L".

  1. Open xml-file ~/.config/openbox/lubuntu-rc.xml

  2. Find the keyboard area to set keybind element.

  3. Add following code as last entry in the keyboard area:

    <!-- Alternative for lock the screen on "Window Logo + L"-->
    <keybind key="W-l">
      <action name="Execute">
        <command>lxsession-default lock</command>
      </action>
    </keybind>
  1. Save the xml-file ~/.config/openbox/lubuntu-rc.xml

  2. Open a terminal and call

openbox --reconfigure

       if this didnt help you can alternative logout and login.

  1. Now you can use defined custom shortcut
⚠️ **GitHub.com Fallback** ⚠️