Created a new gb.kbd file for United Kingdom keyboard

9 views
Skip to first unread message

Rudiger Wolf

unread,
Sep 6, 2014, 2:10:38 PM9/6/14
to key-mon...@googlegroups.com
Hi

I have a DELL XPS laptop with a United Kingdom keyboard and Ubuntu 14.04. There did not seem to be a mapping for my keyboard.

Installed key-mon with

sudo apt-get install key-mon

I've created a gb.kbd file that might be of use to someone in the future. Attached.

file created with mod_mapper.py

Changed the following for my keyboard:

40 KEY_QUOTERIGHT '
41 KEY_QUOTELEFT `
43 KEY_NUMBERSIGN #
87 KEY_L1 F11
88 KEY_L2 F12
109 KEY_PAGE_DOWN PgDn PgD

copied the file to key-mon
sudo cp gb.kbd /usr/lib/python2.7/dist-packages/keymon/gb.kbd

Use it with the following command
key-mon --kbdfile=gb.kbd

Now seems to display all keys on my keyboard.

Thanks for the great software.



gb.kbd

Yu-Jie Lin

unread,
Sep 6, 2014, 5:57:00 PM9/6/14
to key-mon...@googlegroups.com
Thanks for the contribution, it's now in 7a84c80d5a81.

I did briefly test it with setxkbmap -model pc105 -layout gb since I don't know what should be used, seems okay, [#] does work as I expected on my [\] (US layout) key, thought I am not entirely sure it would work good for all United Kingdom layout keyboards.

It would be better that you could provide setxkbmap -print, but someone with physical GB layout keyboard is more qualified to test it. Anyway, I still believe it would be fine.

Two things to add:

1. If you would create an issue next time or for further discussions, that's would be more helpful since this type of contribution is heavily involved in development and
2. (off-topic) I would advise you to get a copy of key-mon if you need to touch the files, cloning or tarball, sudo your system files are relatively dangerous, you never know when you would accidentally move, delete, or overwrite the wrong files. Codes like key-mon are totally fine to be run from any location without being installed via any package managers. Don't touch files -- excluding configuration files -- and directories that are installed and used by your system package managers, unless you are 100% sure you would not make a mistake.
Reply all
Reply to author
Forward
0 new messages