SlideShare a Scribd company logo
1. Install prerequisite development files
pi@raspberrypi ~ $ sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool -y
2. Install and compile matchbox-keyboard
pi@raspberrypi ~ $ git clone https://github.com/mwilliams03/matchbox-keyboard.git
pi@raspberrypi ~ $ cd matchbox-keyboard
pi@raspberrypi ~ $ ./autogen.sh
pi@raspberrypi ~ $ make
pi@raspberrypi ~ $ sudo make install
Installation of the shared matchbox libraries needs to be done after the
installation of matchbox-keyboard.
pi@raspberrypi ~ $ sudo apt-get install libmatchbox1 -y
3. Create toggle script to start or stop matchbox-keyboard
We will now create a script to toggle the keyboard on and off. And then add a
menu item to access the script as well as add an icon to the task bar for easy
access.
Create a new file;
pi@raspberrypi ~ $ sudo nano /usr/bin/toggle-matchbox-keyboard.sh
And copy in the text below;
#!/bin/bash
#This script toggle the virtual keyboard
PID=`pidof matchbox-keyboard`
if [ ! -e $PID ]; then
killall matchbox-keyboard
else
matchbox-keyboard&
fi
Now make it executable;
pi@raspberrypi ~ $ sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh
We will now add an item to the start menu.
pi@raspberrypi ~ $ sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop
Name=Toggle Matchbox Keyboard
Comment=Toggle Matchbox Keyboard
Exec=toggle-matchbox-keyboard.sh
Type=Application
Icon=matchbox-keyboard.png
Categories=Panel;Utility;MB
X-MB-INPUT-MECHANSIM=True
To create an icon on the task bar, open up the LXDE panel config;
pi@raspberrypi ~ $ nano ~/.config/lxpanel/LXDE/panels/panel
If the above file is empty, then it is most likely that you have a newer version
of Raspbian, especially if you are using a Pi 2. You then would need to edit
the panel config at this location;
pi@raspberrypi ~ $ nano ~/.config/lxpanel-pi/LXDE/panels/panel
Find this section of config (it is near the bottom);
Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
and change it to;
Plugin {
type = launchbar
Config {
Button {
id=toggle-matchbox-keyboard.desktop
}
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
pi@raspberrypi ~ $ matchbox-keyboard
pi@raspberrypi ~ $ DISPLAY=:0.0 matchbox-keyboard
This will load the default keyboard layout, seen here;
pi@raspberrypi ~ $ matchbox-keyboard -s 50
pi@raspberrypi ~ $ matchbox-keyboard -s 50 extended
Generating keyboard in raspberry pi

More Related Content

PDF
Containerize spring boot application with docker
PPTX
GNU Autotools - Automake and Autoconf
PDF
Linux shell ggsipu-lug
PPTX
10 tips for making Bash a sane programming language
PPTX
Process monitoring in UNIX shell scripting
PDF
Ansible, Simplicity, and the Zen of Python
PPTX
Cis 216 – shell scripting
Containerize spring boot application with docker
GNU Autotools - Automake and Autoconf
Linux shell ggsipu-lug
10 tips for making Bash a sane programming language
Process monitoring in UNIX shell scripting
Ansible, Simplicity, and the Zen of Python
Cis 216 – shell scripting

What's hot (20)

PPTX
Vitta Minicurso Laravel - Hackathon League of Legends
PDF
Introduction to WP-CLI: Manage WordPress from the command line
PDF
Docker導入手順
PPTX
Drupal from scratch
PDF
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
PPTX
Audio equalizer
PDF
Unleash your build with nuke
PDF
Ansible - Swiss Army Knife Orchestration
PDF
Chat bot-automation-hubot
PDF
Wordcamp Plugins
PPT
Edup wifi for raspberry zero
PDF
Unit 11 configuring the bash shell – shell script
PDF
2019 11-bgphp
PDF
Hubot: a look inside our robot friend
PDF
Play on Docker
PPTX
4. copy2 in Laravel
PDF
Three Objectionable Things
PPTX
Easiest way to start with Shell scripting
PDF
Ondřej Šika: Docker, Traefik a CI - Mějte nasazené všeny větve na kterých pra...
PDF
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
Vitta Minicurso Laravel - Hackathon League of Legends
Introduction to WP-CLI: Manage WordPress from the command line
Docker導入手順
Drupal from scratch
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
Audio equalizer
Unleash your build with nuke
Ansible - Swiss Army Knife Orchestration
Chat bot-automation-hubot
Wordcamp Plugins
Edup wifi for raspberry zero
Unit 11 configuring the bash shell – shell script
2019 11-bgphp
Hubot: a look inside our robot friend
Play on Docker
4. copy2 in Laravel
Three Objectionable Things
Easiest way to start with Shell scripting
Ondřej Šika: Docker, Traefik a CI - Mějte nasazené všeny větve na kterých pra...
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
Ad

Similar to Generating keyboard in raspberry pi (20)

DOCX
Lab manual
PPTX
Workshop Raspberry Pi NAS with Windows Share
PPTX
Up and running with Raspberry Pi
DOCX
Raspberry with laptop
PDF
Raspberry Pi - Lecture 6 Working on Raspberry Pi
PPTX
Starting Raspberry Pi
DOCX
Raspbery pi commands
PDF
Raspberry pi Board Hardware & Software Setup
PPTX
CONFIGURING RASPBEERPI IS SHOWN IN STEP BY STEP
PPTX
Raspberry Pi Free Session - 20_09_2014
PPT
Raspberry zero usb in linux
PPTX
IoT for data science Module 5 - Raspberry Pi.pptx
PPTX
Raspberry Pi Session - 22_11_2014
PDF
Raspi_TOR_Access_Point_BenMoore
PPTX
Raspberry pi getting the pi up and running part II
PPTX
Raspberry pi : how to get started
PPTX
Getting Started with Raspberry Pi
PPTX
Raspberry pi
PPTX
IOT notes ....,.........
PPTX
introduction to Raspberry pi
Lab manual
Workshop Raspberry Pi NAS with Windows Share
Up and running with Raspberry Pi
Raspberry with laptop
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Starting Raspberry Pi
Raspbery pi commands
Raspberry pi Board Hardware & Software Setup
CONFIGURING RASPBEERPI IS SHOWN IN STEP BY STEP
Raspberry Pi Free Session - 20_09_2014
Raspberry zero usb in linux
IoT for data science Module 5 - Raspberry Pi.pptx
Raspberry Pi Session - 22_11_2014
Raspi_TOR_Access_Point_BenMoore
Raspberry pi getting the pi up and running part II
Raspberry pi : how to get started
Getting Started with Raspberry Pi
Raspberry pi
IOT notes ....,.........
introduction to Raspberry pi
Ad

Generating keyboard in raspberry pi

  • 1. 1. Install prerequisite development files pi@raspberrypi ~ $ sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool -y 2. Install and compile matchbox-keyboard pi@raspberrypi ~ $ git clone https://github.com/mwilliams03/matchbox-keyboard.git pi@raspberrypi ~ $ cd matchbox-keyboard pi@raspberrypi ~ $ ./autogen.sh pi@raspberrypi ~ $ make pi@raspberrypi ~ $ sudo make install Installation of the shared matchbox libraries needs to be done after the installation of matchbox-keyboard. pi@raspberrypi ~ $ sudo apt-get install libmatchbox1 -y 3. Create toggle script to start or stop matchbox-keyboard We will now create a script to toggle the keyboard on and off. And then add a menu item to access the script as well as add an icon to the task bar for easy access. Create a new file; pi@raspberrypi ~ $ sudo nano /usr/bin/toggle-matchbox-keyboard.sh And copy in the text below; #!/bin/bash #This script toggle the virtual keyboard PID=`pidof matchbox-keyboard` if [ ! -e $PID ]; then killall matchbox-keyboard
  • 2. else matchbox-keyboard& fi Now make it executable; pi@raspberrypi ~ $ sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh We will now add an item to the start menu. pi@raspberrypi ~ $ sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop Name=Toggle Matchbox Keyboard Comment=Toggle Matchbox Keyboard Exec=toggle-matchbox-keyboard.sh Type=Application Icon=matchbox-keyboard.png Categories=Panel;Utility;MB X-MB-INPUT-MECHANSIM=True To create an icon on the task bar, open up the LXDE panel config; pi@raspberrypi ~ $ nano ~/.config/lxpanel/LXDE/panels/panel
  • 3. If the above file is empty, then it is most likely that you have a newer version of Raspbian, especially if you are using a Pi 2. You then would need to edit the panel config at this location; pi@raspberrypi ~ $ nano ~/.config/lxpanel-pi/LXDE/panels/panel Find this section of config (it is near the bottom); Plugin { type = launchbar Config { Button { id=lxde-screenlock.desktop } Button { id=lxde-logout.desktop } } and change it to; Plugin {
  • 4. type = launchbar Config { Button { id=toggle-matchbox-keyboard.desktop } Button { id=lxde-screenlock.desktop } Button { id=lxde-logout.desktop } } pi@raspberrypi ~ $ matchbox-keyboard pi@raspberrypi ~ $ DISPLAY=:0.0 matchbox-keyboard This will load the default keyboard layout, seen here; pi@raspberrypi ~ $ matchbox-keyboard -s 50 pi@raspberrypi ~ $ matchbox-keyboard -s 50 extended