Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 23:38:22 +0000
From:      Jeff Penn <jeff@jrpenn.demon.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: keyboard mappings in X11
Message-ID:  <20021119233822.GA2749@jrpenn.demon.co.uk>
In-Reply-To: <20021119143135.GA29093@kierun.org>
References:  <20021119143135.GA29093@kierun.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021119233822.GA2749>