On-screen keyboard for a HTPC


by ross at 06:42:01 on November 4, 2012

I needed an on-screen keyboard that will scale according to the display DPI setting. All GTK programs do that. Since I haven't programmed in C for 10 years I wrote a simple Perl-GTK script instead.

Here is how it looks on my TV:pvkbd-thumb.png

You can add your language — it's simple, just have a look at layouts/english.json. Please email me the layout if you do.

The Copy button will copy the entire text buffer to clipboard if there is no selection. Or the selected part otherwise. You can then right-click a text field in the browser and choose Paste.

Install the dependencies:

# cd /usr/ports/x11-toolkits/p5-Gtk2
# make install clean
# cd /usr/ports/converters/p5-JSON
# make install clean

Fetch the tarball and install:

# cd
# fetch http://daemon-notes.com/downloads/assets/soft/pvkbd-0.3.tar.bz2
# tar jxvf pvkbd-0.3.tar.bz2
# cd pvkbd-0.3
# make install
# cd ..
# rm -rf pvkbd-0.3*

If you ever decide to deinstall it redownload the sources and run:

# cd pvkbd-0.3
# make uninstall