[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hardware
Subject:    Re: new keyboard - "special" keys useable?
From:       Peter Jeremy <PeterJeremy () optushome ! com ! au>
Date:       2005-06-12 7:24:44
Message-ID: 20050612072443.GB50157 () cirb503493 ! alcatel ! com ! au
[Download RAW message or body]

On Fri, 2005-Jun-10 22:20:40 +0200, Oliver Lehmann wrote:
>I'm planning to buy a new cordless keyboard+mouse. But as far as I can
>see, there are only keyboards available with 8-25 "special" keys meant
>for doing sth. special in windows (adjusting volume, open iexplore and so
>on)
>Can I make those keys somewhat useable with FreeBSD

Do you want them usable in syscons or X11?

For the former, see kbdmap(1) and kbdmap(5).
For the latter, see setxkbmap(1) and friends or xmodmap(1).

Note that in either case, you need to know the keycodes generated by the
"special" keys - xev(1) can be useful for this.

> so I can define for
>example script "a" to execute when key "a" was pressed?

In general, no.  Syscons is limited to generating a single key
character (including function keys) or special event known to the
kernel (switch screens, halt, reboot, power off etc).  X is somewhat
more powerful but is still constrained to forwarding a single event to
the X client (though you may be able to configure the client to
perform arbitrary actions using the key bindings in the resource
database).

-- 
Peter Jeremy
_______________________________________________
freebsd-hardware@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic