diff options
author | Joe Rayhawk <jrayhawk@freedesktop.org> | 2013-07-08 08:48:53 +0000 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@freedesktop.org> | 2013-07-08 08:48:53 +0000 |
commit | ed67cf8ed89bdbd38f8db7c73dd7766498ced23f (patch) | |
tree | 621bae51162dc597d2700a779cf07d124644e885 /XKBLayoutCreationNotes.mdwn | |
parent | 5ee75fd7705a37c3cf194b2ae659804a8cb09ffc (diff) |
moin2mdwn: convert page XKBLayoutCreationNotes
Diffstat (limited to 'XKBLayoutCreationNotes.mdwn')
-rw-r--r-- | XKBLayoutCreationNotes.mdwn | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/XKBLayoutCreationNotes.mdwn b/XKBLayoutCreationNotes.mdwn new file mode 100644 index 00000000..7d5d7972 --- /dev/null +++ b/XKBLayoutCreationNotes.mdwn @@ -0,0 +1,29 @@ + + +# Notes for the uninitiated: Creating custom keyboards + + +## Printing geometry + +_xkbprint_ reads **.xkm** files, which are generated by _xkbcomp_. + +_xkbcomp_ reads **.xkb** files, which are located in the keymap directory. An example of printing a geometry is: +[[!format txt """ +cd /usr/share/X11/xkb/keymap +xkbcomp xfree86 -m dvorak +xkbprint dvorak.xkm +"""]] +This creates the files _dvorak.xkm_ and _dvorak.ps_. + +You may get an error such as: +[[!format txt """ +Error: No Symbols named "pc105" in the include file "us" + Exiting + Abandoning symbols file "us" +"""]] +This is because keymaps are an obsolete technique for specifying your keyboard to X. As such they have not been maintained as the other directories have evolved. You will have to either track down how the keymap names have changed in the other directories and update the keymap file (usually easy to do with a quick inspection and grep) or write your own little **.xkb** file (also not too hard to do). + + +## showkey codes are different than xkb keycodes + +_showkey_ is used to display keyboard scancodes on the console, for use when creating keymaps for _loadkeys_. However the scancodes reported by _showkey_ are **different** than the keycodes xkb reads. To inspect the keycodes as seen by xkb for individual keypresses, use _xev_ from inside Xwindows. |