On Tuesday 21 October 2003 04:42, Adolfo A. Bello B. wrote: > On Mon, Oct 20, 2003 at 11:11:22PM +0200, H.J.Bathoorn wrote: > > I did some pre-hunting;) > > > > There's a file "/etc/sysconfig/keyboard" that gets read by > > "/etc/init.d/keytable" and sets the keytable. > > This does need to be done in su/root status, though! > > > > So make a bash script (which you link to a key event or give a very > > short name that makes sense to you) that writes to > > /etc/sysconfig/keyboard and then initializes with "service keyboard > > restart". > > > > Good luck, > > HarM > > HarM: > > After some hunting I came to "loadkeys". As a normal user, now I can easily > switch the keyboard layout to spanish with "loadkeys es" and back to > us-english with "loadkeys us". > > After some googling and rtfm-ing I don't know what to do to bind/link > hotkeys to scripts or aliases in .bashrc. > > I would love to have something like ctrl-alt-u to switch to us-english and > ctrl-alt-e to switch to spanish. > > Reading about inputrc I got sort of lost. > > Could you point me in the right direction to achieve this? > > What I want to do is to switch keyborad layount from within mutt. > > I feel we are pretty close to the solution. > > Saludos, > > Adolfo I've never tried anything with /etc/inputrc so can't help you there. There are tricks to bind specific commands to certain key events by editing the .Xmodmap file i.e. change an existing keycode.
Or add the alias to .bashrc or to /etc/bashrc for system wide usage. You could also create commands yourself i.e. "us" or "es" in /usr/sbin/ that run the desired "loadkeys *s" Good luck, HarM -- Registered Linux User #197998 FSF Associate Member #901 ICQ #146191606 Mandrake HowTo's & more: http://twiki.mdklinuxfaq.org
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
