public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* advice on adding functions to use with "loadkeys" (keyboard.c maybe?)
@ 2003-06-07 17:48 Andrej Hocevar
  0 siblings, 0 replies; only message in thread
From: Andrej Hocevar @ 2003-06-07 17:48 UTC (permalink / raw)
  To: linux-kernel

Hello,
in many trivial situations, one cannot make good use of common
techniques for mapping certain functions to certain keys in the
console. For example, using "loadkeys" to make F1 start
"fetchmail\n" or something similar is convenient in most cases. But
if one wants to make it change the keyboard-layout (like "loadkeys
us"), it won't make much sense to use the previous approach, since
it won't work from within an editor. Instead, a solution would be to
map a key to "KeyboardSignal" and point it to a script from
/etc/inittab. 

Now here's my question: the last approach is good but even if one
maps multiple keys to the same signal, I don't see a way for the
script to know which key was pressed to run it. So I thought I could
add some custom functions to do mostly trivial tasks, maybe something
like "ls -l" to test its functionality, and then use "loadkeys" to
map a key to that new function. Is this possible? Is it a good idea
at all? 

Thanks,
    andrej

-- 
echo ${girl_name} > /etc/dumpdates

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-07 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-07 17:48 advice on adding functions to use with "loadkeys" (keyboard.c maybe?) Andrej Hocevar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox