[SOLVED] XVKBD virtual on-screen keyboard with a UK layout by default…

Hi there.

So I’ve installed xvkbd.

[andrzejl@wishmasus ~]$ su
Password:
[root@wishmasus andrzejl]# pacman -S xvkbd
resolving dependencies...
looking for conflicting packages...
Packages (4) libxp-1.0.2-1 printproto-1.0.5-3 xaw3d-1.6.2-2 xvkbd-3.5-1
Total Download Size: 0.32 MiB
Total Installed Size: 1.13 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages ...
xaw3d-1.6.2-2-i686 179.5 KiB 402K/s 00:00 [########################################] 100%
printproto-1.0.5-3-any 14.8 KiB 1139K/s 00:00 [########################################] 100%
libxp-1.0.2-1-i686 86.0 KiB 384K/s 00:00 [########################################] 100%
xvkbd-3.5-1-i686 45.0 KiB 672K/s 00:00 [########################################] 100%
(4/4) checking keys in keyring [########################################] 100%
(4/4) checking package integrity [########################################] 100%
(4/4) loading package files [########################################] 100%
(4/4) checking for file conflicts [########################################] 100%
(4/4) checking available disk space [########################################] 100%
(1/4) installing xaw3d [########################################] 100%
(2/4) installing printproto [########################################] 100%
(3/4) installing libxp [########################################] 100%
(4/4) installing xvkbd [########################################] 100%
[root@wishmasus andrzej]# exit
[andrzejl@wishmasus ~]$

and then I’ve ran it…

XVKBD virtual on-screen keyboard with a UK layout by default 001

By default xvkbd starts with the US layout. I’ve been searching for some sort of a command line switch so that I could edit the .desktop file but the only thing that I’ve found was a “clickable” layout change from the xvkbd gui after the keyboard has already started. That’s not good enough and so I’ve decided to find a way to change the layout to UK by default before keyboard before it starts. Its not pretty but it works.

1) Gain root:

su

2) Backup the US layout:

mv /usr/lib/X11/app-defaults/XVkbd /usr/lib/X11/app-defaults/XVkbd-usa

3) Copy the UK layout in its place (You can use whichever layout You want):

cp /usr/lib/X11/app-defaults/XVkbd-uk /usr/lib/X11/app-defaults/XVkbd

4) Drop root:

exit

Now when You will start xvkbd it will start with the layout that You’ve chosen…

XVKBD virtual on-screen keyboard with a UK layout by default 002

Cheers.

Andrzej

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.