Open main menu

Changes

Soft Virtual keyboard

1,840 bytes added, 16:12, 18 December 2015
==Use the Raspberry OS that we provide==
* Do as following:
[[File:3.5inchsoft.jpg|thumbnail|200px|left]]<br />










==Use at yourself Raspbian OS==
* Install the lib and update.On the Terminal, enter
''sudo apt-get update''
''sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool -y''
* Copy [[File:3.5LCDMatchbox-keyboard.zip|thumbnail]] to your Raspbian OS.On the LXTerminal, enter
''cd matchbox-keyboard''
''./autogen.sh''
''sudo make''
''sudo make install''
''sudo apt-get install libmatchbox1 -y''
''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 -s 50 extended&
fi
* ''sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh''
''sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop''
Copy in this text;
[Desktop Entry]
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
* ''nano ~/.config/lxpanel/LXDE-pi/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
}
}
Press the keyboard “Ctrl + X” ,then choice “Y”, Press the ”Enter” exit.
* On the LXTerminal, enter
''sudo reboot''
After reboot ,you can enjoy the software keyboard