First GPIO circuit – Flashing an LED

The first circuit I have created for my Pi is to simply flash an LED then, with this working, make a morse code machine.

Continue reading ‘First GPIO circuit – Flashing an LED’

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.

Introduction

This a blog for all my adventures in computing.

As part of my day job I do lots of work in .NET technologies and SQL Server.

At other times I like tinkering. I’m currently playing with the Raspberry Pi especially the GPIO ports in the hopes of eventually making a robot. I’ve also been learning Python to write a jukebox for my living room and games.

This blog will be about everything I discover that somebody else might find useful (and stuff I might find useful in a year’s time when I’ve forgotten it!)


Archives

Categories