Remapkey spanish keyboard

Matthias Apitz guru at unixarea.de
Sat Dec 28 18:07:48 UTC 2013


El día Saturday, December 28, 2013 a las 04:49:37PM +0100, Eduardo escribió:

> If it's on X, you can use hald/dbus. Enable them on rc.conf and add
> this code to file /usr/local/etc/hal/fdi/policy/x11-input.fdi
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <deviceinfo version="0.2">
>   <device>
>     <match key="info.capabilities" contains="input.keyboard">
>       <merge key="input.x11_options.XkbModel"
> type="string">pc105</merge> <merge key="input.x11_options.XkbLayout"
> type="string">es</merge> </match>
>   </device>
> </deviceinfo>

I have a normal QWERTY keyboard on my EeePC 900 netbook (I'm just typing
into it) and with X11 I use the following script xmod.sh on desktop
launch:

# para el español:
#
xmodmap -e "keycode 0x73 =  Mode_switch"
xmodmap -e "keycode 0x39 =  n N ntilde Ntilde"
xmodmap -e "keycode 0x1a =  e E eacute Eacute"
xmodmap -e "keycode 0x26 =  a A aacute Aacute"
xmodmap -e "keycode 0x1f =  i I iacute Iacute"
xmodmap -e "keycode 0x1e =  u U uacute Uacute"
xmodmap -e "keycode 0x20 =  o O oacute Oacute"
xmodmap -e "keycode 0x0a =  1 exclam exclamdown onesuperior"
xmodmap -e "keycode 0x3d = slash question questiondown ssharp"
xmodmap -e "keycode 59 = comma less guillemotleft"
xmodmap -e "keycode 60 = period greater guillemotright"
#
xmodmap -e "keycode 0x35 = x X adiaeresis Adiaeresis"
xmodmap -e "keycode 0x36 = c C odiaeresis Odiaeresis"
xmodmap -e "keycode 0x37 = v V udiaeresis Udiaeresis"

Using this the so called Windows-key get a nice usage: Winkey+n gives ñ
and so on: áéíóúñ...

HIH

	matthias

-- 
Sent from my FreeBSD netbook

Matthias Apitz, <guru at unixarea.de>, http://www.unixarea.de/ f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5


More information about the freebsd-questions mailing list