Creating custom keyboard layouts for x11 using XKB by Michal K osmulski is licensed under the c reative c ommons Attribution-ShareAlike license and the GNU Free Documentation License. C ode samples in this article are hereby put in the public domain. C ontac t the author if you are interes ted in other forms of lic ens ing.
Creating custom keyboard layouts for x11 using XKB by Michal K osmulski is licensed under the c reative c ommons Attribution-ShareAlike license and the GNU Free Documentation License. C ode samples in this article are hereby put in the public domain. C ontac t the author if you are interes ted in other forms of lic ens ing.
Creating custom keyboard layouts for x11 using XKB by Michal K osmulski is licensed under the c reative c ommons Attribution-ShareAlike license and the GNU Free Documentation License. C ode samples in this article are hereby put in the public domain. C ontac t the author if you are interes ted in other forms of lic ens ing.
I t is pos s ible to as s ign arbitrary U nic ode c harac ters , even thos e whic h don't have a name, to keys trokes . For example, a line s uc h as : key <AC07> { [ j, J, U263A, U263B ] }; binds the U nic ode c harac ters 2 6 3 A and 2 6 3 B (white and blac k s miley fac es ) to A ltG r+J and A ltG r+Shift+J . T hanks to O s s i V iljakainen for pointing this out.
Creating custom keyboard layouts for X11 using
XKB I n mos t modern des ktop environments there is a s mall applet that allows us ers to quic kly s witc h between keyboard layouts when they need to type text in more than one language. H owever, there are s ituations where this s olution is not quite s atis fac tory. Some writing jobs (that of a trans lator, for example) require writing text in whic h words from s everal languages are intermixed, whic h would make frequent s witc hes between keyboard layouts nec es s ary. T his is a big inc onvenienc e, even when keyboard s hortc uts are us ed to s witc h between layouts . A nother problem is that the logic al keyboard layouts us ed may s ometimes not fit the phys ic al keyboard layout very well, res ulting in a c onfus ing s etup. 1 of 1 17/02/2011 09:42 πμ O ne s olution is to us e layouts with s o c alled dead keys . T his is a way of generating ac c ented c harac ters by firs t pres s ing a key whic h c orres ponds to the ac c ent (the dead key) and then a letter key (e.g. pres s ing ~ and then n generates ñ). T his allows you to generate many ac c ented c harac ters us ing