Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 18:13:51 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Eduardo <emorrasg@yahoo.es>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remapkey spanish keyboard
Message-ID:  <20131228171351.GA917@tiny-r255948>
In-Reply-To: <20131228164937.00000273.emorrasg@yahoo.es>
References:  <CAMSA9wcJVFs57N0Mu=k2COZO=K3X=KsDUgcxsTmP9632kdf9AA@mail.gmail.com> <20131228164937.00000273.emorrasg@yahoo.es>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
El da 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 espaol:
#
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@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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20131228171351.GA917>