[BRLTTY] Proof of concept code: Filter keyboard keypresses on Linux

Samuel Thibault samuel.thibault at ens-lyon.org
Sat Dec 15 13:17:14 EST 2007


Mario Lang, le Sat 15 Dec 2007 19:11:09 +0100, a écrit :
> Samuel Thibault <samuel.thibault at ens-lyon.org> writes:
> > Andor Demarteau, le Sat 15 Dec 2007 17:28:30 +0100, a écrit :
> >> nice concept however for yoru special gkeys you could have used 
> >> setkeycoeds and loadkey, at elast for the console.
> >> on my dell inspiron system some keypresses give off unknown keycode 
> >> messages.
> >> It refers to setkeycodes to assign them
> >
> > Right, but that only permits to assign them usual meanings or simulating
> > insertion of a string on the current console. That doesn't permit to
> > increase the volume of the sound board or activate the wireless network
> > for instance.  BTW, Mario, I think your piece of code may be of use for
> > a lot of people for these examples and not only non-sighted users.
> 
> Yes, I am aware that this functionality could be useful as
> a stand alone command line utility, I am still pondering
> how to design its interface...

A configuration file that associates key presses with some actions,
something like 

As root Exec command
As root Ioctl foo
As samy Exec fetchmail

... would probably meet my needs.

Samuel


More information about the BRLTTY mailing list