Date: Sun, 12 Jun 2005 17:24:44 +1000 From: Peter Jeremy <PeterJeremy@optushome.com.au> To: Oliver Lehmann <lehmann@ans-netz.de> Cc: hardware@freebsd.org Subject: Re: new keyboard - "special" keys useable? Message-ID: <20050612072443.GB50157@cirb503493.alcatel.com.au> In-Reply-To: <20050610222040.47326a5c.lehmann@ans-netz.de> References: <20050610222040.47326a5c.lehmann@ans-netz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050612072443.GB50157>