[desktop-discuss] Mouse bindings?

Alan Coopersmith alan.coopersmith at sun.com
Fri Mar 7 08:08:38 PST 2008


Brian Smaalders wrote:
> Hello - newbie to OpenSolaris here. I've just installed Solaris 11 (snv_84) on my Fujitsu Lifebook and I've run into a few minor usability snags. I was hoping someone here could offer some insight into the problems I'm having.
> 
> First, my trackpad is fairly standard and well-supported. However, the buttons have a somewhat unusual arrangement: Left mouse is mouse button 1, right mouse is mouse button 2, and there are two extra buttons used to emulate a scroll wheel. Mouse button 3 is "down" and mouse 4 is "up."
> 
> The problem I'm having is that I cannot find out how to rebind mouse 3 from "Copy currently highlighted text" to "mouse wheel scroll down." If this is at all possible, I'd be very happy.

Mouse buttons aren't bound to actions globally, but in each
individual program.   I think the easiest way to get what
you want would be:
	xmodmap -e "pointer = 1 3 4 5 2"

i.e. change the mouse button mappings to:

	Actual button		Reported button
	    1			     1
	    2			     3
	    3			     4
	    4			     5
	    5			     2

so that then the default bindings work as expected.   You'ld
have to re-run that every time you login - I'm not sure what
file GNOME provides for putting commands like that in.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering


More information about the desktop-discuss mailing list