HOME

  • ABOUT
  • PORTFOLIO
  • NEWS, TECH & ART
    • Websites
    • WordPress Plugins
    • Processing.org
    • Neural networks
    • New Media Art
  • RASPBERRY PI
  • ABOUT
  • PORTFOLIO
  • NEWS, TECH & ART
    • Websites
    • WordPress Plugins
    • Processing.org
    • Neural networks
    • New Media Art
  • RASPBERRY PI
Raspberry PI – binding actions to (hot)keys

Raspberry PI – binding actions to (hot)keys

  • actions, hot keys, lxterminal, raspberry pi, root terminal

logoHow to bind actions to Raspberry PI (hot)keys?

I want to define a key for starting the lxterminal on my Raspberry PI.

This is how you can do it:

  • Open the LXDE configuration file:
    sudo nano ~/.config/openbox/lxde-rc.xml
  • In the <keyboard>(…)</keyboard> section add the following lines of code:
    <keybind key=”F4″>
      <action name=”Execute>
        <command>lxterminal</command>
      </action>
    </keybind>
    <keybind key=”F5″>
      <action name=”Execute>
        <command>gksu /usr/bin/x-terminal-emulator</command>
      </action>
    </keybind>
  • Reboot the PI:
    sudo shutdown -r now

When it’s back up-and-running, pressing the <F4>-key will launch the LX Terminal and the <F5>-key will launch the Root Terminal.

previous article next article
profile background
profile image

Rolf van Gelder

Owner of CAGE Web Design

CAGE was established in the year 2000

What’s new?

  • WebImageLoader – Processing Library
  • Responsive P5JS for WP – WordPress plugin
  • Optimize Database after Deleting Revisions – WordPress plugin
© 1995-2025 CAGE Web Design, Eindhoven, NL | +31 (0)6 22 66 3193