map mouse button 4 or 5 to button 2?

Takuma Murakami takuma@dgp.ne.jp
Thu Feb 19 09:00:00 GMT 2004


Jeffrey,

> Is it possible to have either button 4 or 5 (usually the forward/back 
> buttons) send a 'button 2' signal (ie paste) to cygwin applications?  

Chad shows the best way for your purpose.  As a note, you
can swap mouse buttons via xmodmap command in UNIX like
environments.  For this case
xmodmap -e "pointer = 1 5 3 4 2"
swaps button 2 and button 5.

> My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which 
> includes a Wireless IntelliMouse Explorer 2.0), and I'm running .... hm, 
> not sure how to check my Cygwin version, it's probably ~4 months old 
> ... on WinXP.

The xmodmap way works well on Cygwin/X versions newer than
release-22 (released on 2003-11-9).

Takuma Murakami



More information about the Cygwin-xfree mailing list