From owner-freebsd-questions@FreeBSD.ORG Tue May 24 13:27:47 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 EE68216A41C for ; Tue, 24 May 2005 13:27:47 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E79843D54 for ; Tue, 24 May 2005 13:27:47 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 23989 invoked from network); 24 May 2005 13:27:44 -0000 Received: by simscan 1.1.0 ppid: 23956, pid: 23986, t: 0.1358s scanners: clamav: 0.84/m:31/d:888 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 May 2005 13:27:44 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D185C2D; Tue, 24 May 2005 09:27:42 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Joe Schmoe To: freebsd-questions@freebsd.org References: <20050524071927.43257.qmail@web53308.mail.yahoo.com> From: Lowell Gilbert Date: 24 May 2005 09:27:42 -0400 In-Reply-To: <20050524071927.43257.qmail@web53308.mail.yahoo.com> Message-ID: <44sm0cu52p.fsf@be-well.ilk.org> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: mapping mouse clicks to keystrokes in X ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 13:27:48 -0000 Joe Schmoe 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.