From owner-freebsd-hardware@FreeBSD.ORG Sun Jun 12 07:24:57 2005 Return-Path: X-Original-To: hardware@freebsd.org Delivered-To: freebsd-hardware@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1D7A16A41F for ; Sun, 12 Jun 2005 07:24:57 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8C1943D48 for ; Sun, 12 Jun 2005 07:24:56 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) by mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j5C7OiS8018326 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 12 Jun 2005 17:24:46 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j5C7OiRx050764; Sun, 12 Jun 2005 17:24:44 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j5C7Oipf050763; Sun, 12 Jun 2005 17:24:44 +1000 (EST) (envelope-from pjeremy) Date: Sun, 12 Jun 2005 17:24:44 +1000 From: Peter Jeremy To: Oliver Lehmann Message-ID: <20050612072443.GB50157@cirb503493.alcatel.com.au> References: <20050610222040.47326a5c.lehmann@ans-netz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050610222040.47326a5c.lehmann@ans-netz.de> User-Agent: Mutt/1.4.2i Cc: hardware@freebsd.org Subject: Re: new keyboard - "special" keys useable? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 07:24:57 -0000 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