Keyboard Shortcuts on the Raspberry Pi

When I first got my Pi I wanted to set it up so I could use LXDE without a mouse. To that end I set up a number of keyboard shortcuts for frequent tasks and menus. In Raspian this is done by editing:

 ~/.config/openbox/lxde-rc.xml

 From command line type:

 nano ~/.config/openbox/lxde-rc.xml

 or from a terminal window inside LXDE:

leafpad ~/.config/openbox/lxde-rc.xml

 Under the keyboard tag add:

<keybind key= “Name of key”>
<action name= “Execute”>
<execute>Command name</execute>
</action>
</keybind>

 So for example to make the Window’s button open the LXDE menu (similar to its function in Windows) add the following under keyboard (Super_L is the code the the Windows key on the keyboard and “lxpanelctl menu” the command for opening the menu:

 <keybind key="Super_L">
<action name="Execute">
<command>lxpanelctl menu</command>
</action>
</keybind>

 or to make F4 open a terminal:

<keybind key="F4">
<action name="Execute">
<execute>lxterminal</execute>
</action>
</keybind>

More information on setting up shortcut keys in OpenBox can be found here:

 http://openbox.org/wiki/Help:Bindings#Modifiers

 though it should be noted that on the Pi the file to modify is lxde-rc.xml not rc.xml.

Advertisements

4 Responses to “Keyboard Shortcuts on the Raspberry Pi”


  1. 1 Don Quijano March 11, 2013 at 9:50 pm

    For F4 terminal:

    lxterminal

  2. 2 Newbie114 October 12, 2013 at 2:56 pm

    Thanks! This is awesome.

  3. 3 Danny September 7, 2015 at 9:15 pm

    Don’t forget to reboot like I did!


  1. 1 DIY Second Keyboard (Script Triggering) – Dane Weber Log Trackback on January 20, 2016 at 9:04 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: