Re: Using keyboard's _multimedia_ keys ?

Arjan Filius (arjan@nospam.xs4all.nl)
Mon, 19 Jul 1999 18:32:39 +0200 (CEST)


Hello,

On 19 Jul 1999, Andreas Schwab wrote:

> Arjan Filius <iafilius@xs4all.nl> writes:
>
> |> I would like to bind such key to a program executed, but running with user
> |> ID which typed that key.
>
> How are you going to find out who typed that key?

That's part of the problem.
I'm able to bind scancodes to keycodes (setkeykodes), and use loadkeys
with using KeyboardSignal to send a signal to init, which spawns an
executable. But then (when multiple keys defined to be on that
KeyboardSignal, it's not possible to find out which key was pressed and
not which user.
For the first problem (finding out which key has been pressed) one could
think about extending keyboard.c:spec_fn_table with additional functions,
and modify init to understand them. But i'm not sure thats the way to go.
Problem 2 (finding ut wich user pressed the key) stays.

Perhaps it's an idea to let loadkeys _understand_ (if possible) an "exec"
primitive more or less similar to the string option ?

Arjan Filius
mailto:iafilius@xs4all.nl
--------------------------------------------------------------
Argh! All right, so how am I supposed to work with Linux when
everything's already been done?! Can't these people leave some
broken MSDOS like parts so there's problems left to solve!?....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/