Date: 24 May 2005 09:27:42 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: freebsd-questions@freebsd.org Subject: Re: mapping mouse clicks to keystrokes in X ? Message-ID: <44sm0cu52p.fsf@be-well.ilk.org> In-Reply-To: <20050524071927.43257.qmail@web53308.mail.yahoo.com> References: <20050524071927.43257.qmail@web53308.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joe Schmoe <non_secure@yahoo.com> writes: > I want my two mouse buttons to create the letters z > and x when I press them, instead of the normal actions > that those mouse buttons send to X. Don't ask. > > It's as simple as it sounds: if I click mouse button > one, it is as if I press z on the keyboard, if I click > mouse button 2, it is as if I press x on the keyboard. > > Does anyone know how to do this ? I am looking at > xmodmap, but even though it swaps mouse buttons > around, and maps keys to other keys, I can't see how > to make it map mouse buttons to keys... In general terms: Use xev(1) to find the keycode for the buttons, then xmodmap(1) to reassign those to the desired keysyms.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44sm0cu52p.fsf>