humpty promotes - Linux - Lubuntu

Lubuntu linux Tips
 
Assign a Keyboard Shortcut



Lubuntu uses the Openbox window manager. To assign a keystroke to a command do the following;

1. If it doesn't exist, copy this openbox xml file to your home

cp etc/xdg/openbox/rc.xml <user>/.config/openbox/lubuntu-rc.xml
note: .config is a hidden directory

2. Edit the openbox lubuntu-rc.xml

leafpad $HOME/.config/openbox/lubuntu-rc.xml

You'll get something like this;

<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
        Copy the file to $HOME/.config/openbox/ instead. -->
.
.
  <keyboard>
    <chainQuitKey>C-g</chainQuitKey>

    <keybind key="C-Scroll_Lock">
      <action name="Execute">
        <command>runterm mouse-r fast</command>
      </action>
    </keybind>

.
.

Find the <keyboard> tag and insert  a <keybind> entry similar to the other entries that you see.
The example you see here is for a control-scroll-lock, and the command is to execute 'runterm mouse-r fast'.



That's it !

More Lubuntu Tips



Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003

Powered by FirstCloudIT.com, a division of DriveHQ, the leading Cloud IT and Cloud Surveillance Service provider since 2003.