Re: inittab: More than 2 special key combinations?

2000-01-12 Thread Matthew W. Roberts
On Jan 12, 2000 at 06:15:05PM, David Wright wrote:
> Quoting Matthew W. Roberts ([EMAIL PROTECTED]):
> > > > Is it possible to set up additional special keyboard requests in
> > > > inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
> > > > want another...
> ...
> > Perhaps it will help if I get specific.  Ctrl-Alt-Delete is set to
> > reboot the computer (as usual).  Then I mapped the Alt-UpArrow to play
> > a CD in my CD-ROM drive so I can play a CD without logging in.  I would
> > like to have Alt-DownArrow skip to the next track, but can't figure out
> > how to do it.
> 
> A workaround might be to make your Alt-uparrow script more sophisticated.
> e.g. in terms of, say, cdplay, it could look at the output of cdir and
> find PLAYING, then cdplay  where n is the track being played, or 0,
> or cdstop if n is the last track. That means you only need the one
> keystroke.

Actually, I had already done something similar.  If the CD is playing then
my script stops it, if it is stopped the script plays it.

Of course, the eject button on the CD-ROM is a pretty effective stop button
:-) so I think I will change it as you suggest.

Thanks,


--
Matthew Roberts

Structural Engineering  [EMAIL PROTECTED]
Texas A&M University


In my house there's this light switch that doesn't do anything.
Every so often I would flick it on and off just to check.
Yesterday, I got a call from a woman in Germany.
She said, "Cut it out."
   -- Steven Wright



Re: inittab: More than 2 special key combinations?

2000-01-12 Thread David Wright
Quoting Matthew W. Roberts ([EMAIL PROTECTED]):
> > > Is it possible to set up additional special keyboard requests in
> > > inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
> > > want another...
...
> Perhaps it will help if I get specific.  Ctrl-Alt-Delete is set to
> reboot the computer (as usual).  Then I mapped the Alt-UpArrow to play
> a CD in my CD-ROM drive so I can play a CD without logging in.  I would
> like to have Alt-DownArrow skip to the next track, but can't figure out
> how to do it.

A workaround might be to make your Alt-uparrow script more sophisticated.
e.g. in terms of, say, cdplay, it could look at the output of cdir and
find PLAYING, then cdplay  where n is the track being played, or 0,
or cdstop if n is the last track. That means you only need the one
keystroke.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: inittab: More than 2 special key combinations?

2000-01-12 Thread lorenzo . zampese
Hello.

You could use 'loadkeys' only for binding predefined action to some key's
sequence,
but you cannot bind your own scripts to the keys.

I have got the old Debian Hammer (2.0 R3, kernel 2.0.34) and I red
somewhere that
a way to run users's script binded to some key's sequence is 'inittab'.
But this new kernel's feature is not well supported yet.
I don't know if the newer kernel 2.2.14 manages it at best, and I didn't
find out
further information about it.
I am sorry!

Maybe you could look for further information in the last kernel's
documentation
"/usr/src/linux/Documentation/*".

P.S.
I unsubscribed from the mailing-list, so if you wish, you could forward
this e-mail
for me to 'debian-user@lists.debian.org'

Bye bye.

   -- Memo - Header ---

To:   Lorenzo Zampese/Electrolux Professional S.P.A./Italy/Electrolux
  Group

cc:   debian-user@lists.debian.org

From: "Matthew W. Roberts" <[EMAIL PROTECTED]>

Date:     11/01/2000 16.45.42 GMT
  11/01/2000 17.46.35

Subject:  Re: inittab: More than 2 special key combinations?

- Memo - Message --




> > Is it possible to set up additional special keyboard requests in
> > inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
> > want another...

> Use 'loadkeys'.

Will `loadkeys' let me assign an arbitrary command to a key sequence?

I've looked at the Console HOWTO and the loadkeys man pages and it appears
that I can only do certain predefined things like switching consoles or
showing the registers.

Perhaps it will help if I get specific.  Ctrl-Alt-Delete is set to
reboot the computer (as usual).  Then I mapped the Alt-UpArrow to play
a CD in my CD-ROM drive so I can play a CD without logging in.  I would
like to have Alt-DownArrow skip to the next track, but can't figure out
how to do it.


--
Matthew Roberts

Structural Engineering  [EMAIL PROTECTED]
Texas A&M University


Factorials were someone's attempt to make math LOOK exciting.






Re: inittab: More than 2 special key combinations?

2000-01-11 Thread Matthew W. Roberts
> > Is it possible to set up additional special keyboard requests in
> > inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
> > want another...

> Use 'loadkeys'.

Will `loadkeys' let me assign an arbitrary command to a key sequence?

I've looked at the Console HOWTO and the loadkeys man pages and it appears
that I can only do certain predefined things like switching consoles or
showing the registers.

Perhaps it will help if I get specific.  Ctrl-Alt-Delete is set to
reboot the computer (as usual).  Then I mapped the Alt-UpArrow to play
a CD in my CD-ROM drive so I can play a CD without logging in.  I would
like to have Alt-DownArrow skip to the next track, but can't figure out
how to do it.


--
Matthew Roberts

Structural Engineering  [EMAIL PROTECTED]
Texas A&M University


Factorials were someone's attempt to make math LOOK exciting.



Re: inittab: More than 2 special key combinations?

2000-01-11 Thread lorenzo . zampese
Use 'loadkeys'.

Bye
   -- Memo - Header ---

To:   debian-user@lists.debian.org

cc:

From: "Matthew W. Roberts" <[EMAIL PROTECTED]>

Date: 10/01/2000 22.07.47 GMT
  10/01/2000 23.08.19

Subject:  inittab: More than 2 special key combinations?

- Memo - Message --




Is it possible to set up additional special keyboard requests in
inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
want another...

Thanks,

--
Matthew Roberts

Structural Engineering  [EMAIL PROTECTED]
Texas A&M University


For my birthday I got a humidifier and a de-humidifier...  I put them in
the same room and let them fight it out.
   -- Steven Wright



--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] <
/dev/null





inittab: More than 2 special key combinations?

2000-01-10 Thread Matthew W. Roberts
Is it possible to set up additional special keyboard requests in
inittab?  I've already assigned ctrl-alt-delete and alt-uparrow and
want another...

Thanks,

--
Matthew Roberts

Structural Engineering  [EMAIL PROTECTED]
Texas A&M University


For my birthday I got a humidifier and a de-humidifier...  I put them in
the same room and let them fight it out.
   -- Steven Wright