John,

  You can map those "new" keys to run anything.  you can write a script
that simply contains

shutdown -h now

and when you hit that key it'll run the that script shutting your
machine down.  if you want something neat and graphical, take a look at
gnomedialog (i think that's the name) it'll allow you to creat simple
scripts that pop up a dialogue box that has either buttons or an input
field and you can have it execute commands for you.

Alex


------------------------------------

Hi all,
  On quite a few keyboards these days there are extra keys.
  One of which is the power button.  How would I get the power
  button working?
 =20
  I read the Keyboard-and-Console-HOWTO  but as far as I could
  follow, the only examples were for mapping new keys to existing
  functions (next terminal, etc)
 =20
  Anyway, how about adding support for the power button?
 =20
  I was thinking that one way of doing it would be to write a kde/gnome
  app that popped up when you first pressed it and asks you to confirm
  that it is indeed the power button, and whether to
shutdown/reboot/custom.
 =20
  On my huge sample of er 3 different keyboards, the power button
generates
  the same scancode (e0 5e or something - can't remember heh)
 =20
  Anyway, thoughts please?
 =20
  JohnFlux
 =20

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to