humpty > promotes Linux  > Lubuntu Tips

Lubuntu linux Tips
 
Assign a Keyboard Shortcut



Note: Since Lubuntu 20.04, LXQt is the default session manager and so keyboard shortcuts are available via Preferences > LXQt Settings > Shortcut Keys.
The following only applies to Lubuntu 18.04 and earlier..


L
ubuntu
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, Recording and Storage service; IP camera live viewing

Leading Enterprise Cloud IT Service; cloud file server, FTP Hosting, Online Storage, Backup and Sharing

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