From owner-freebsd-questions Tue Nov 19 15:37:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CEF637B404 for ; Tue, 19 Nov 2002 15:37:53 -0800 (PST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FB2343E88 for ; Tue, 19 Nov 2002 15:37:52 -0800 (PST) (envelope-from jeff@jrpenn.demon.co.uk) Received: from jrpenn.demon.co.uk ([194.222.241.254]) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 18EHwE-0007R9-0U for freebsd-questions@freebsd.org; Tue, 19 Nov 2002 23:37:51 +0000 Received: from jrpenn.demon.co.uk (localhost [127.0.0.1]) by jrpenn.demon.co.uk (8.12.6/8.12.6) with ESMTP id gAJNctSS002937 for ; Tue, 19 Nov 2002 23:38:55 GMT (envelope-from jeff@jrpenn.demon.co.uk) Received: (from jeff@localhost) by jrpenn.demon.co.uk (8.12.6/8.12.6/Submit) id gAJNcMrd002931 for freebsd-questions@freebsd.org; Tue, 19 Nov 2002 23:38:22 GMT Date: Tue, 19 Nov 2002 23:38:22 +0000 From: Jeff Penn To: freebsd-questions@freebsd.org Subject: Re: keyboard mappings in X11 Message-ID: <20021119233822.GA2749@jrpenn.demon.co.uk> Mail-Followup-To: freebsd-questions@freebsd.org References: <20021119143135.GA29093@kierun.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021119143135.GA29093@kierun.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 19, 2002 at 02:31:35PM +0000, Yann Golanski wrote: > I have a logitech i touch keyboard and would like to know if it is > possible to have all those useless keys at the top of the keyboard > (media control and co) actually maped to something usefull. I have the same keyboard, and am part way through setting this up. Start by looking at: man xmodmap man xev 'xmodmap -pke' enables you to view the current keyboard mappings. 'xev' enables you find out what keycodes the media keys generate. The key mappings are normally set in ~/.xmodmaprc, but I currently set then in .xsession. For example, for xmms I use: xmodmap -e "keycode 144 = z" # previous track What I haven't taken the time to figure out is how to use the keysym database (XKeysymDB - man xmodmap). For example: xmodmap -e "keycode 144 = XF86AudioPrev" xmodmap -e "keycode 162 = XF86AudioPlay XF86AudioPause" Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message