[ale] SuSe and Scrollwheel

Michael D. Hirsch mhirsch at nubridges.com
Wed Feb 11 09:42:07 EST 2004


On Tuesday 10 February 2004 05:41 pm, Dow Hurst wrote:
> You can remap the mouse keys via a small script when you log
> in.  Here is an example to get a Microsoft 5 button
> trackball to work and set my dpms setting at the same time
> when I would log into KDE.
>
> #!/bin/sh
> xset dpms 900 1000 1100
> xmodmap -e "pointer = 1 6 7 3 2 4 5"
> exit

Cool.  I didn't know about the pointer command in xmodmap.  Can I use this on 
my 7 button mouse?  I just realized that my USB Microsoft Intellimouse has 
two buttons I never use.  It has the standard 5 buttons (Left, Right, middle, 
scrull up, scroll down) but there are two more buttons under my thumb.  It 
there a way to map them?

I've run xev to watch the X events, and I can't tell them apart:
Real button 3:
ButtonPress event, serial 27, synthetic NO, window 0x8600001,
    root 0x3f, subw 0x0, time 1901077568, (54,174), root:(58,505),
    state 0x10, button 3, same_screen YES

ButtonRelease event, serial 27, synthetic NO, window 0x8600001,
    root 0x3f, subw 0x0, time 1901077768, (54,174), root:(58,505),
    state 0x410, button 3, same_screen YES

Button 6:
ButtonPress event, serial 27, synthetic NO, window 0x8600001,
    root 0x3f, subw 0x0, time 1901083912, (54,174), root:(58,505),
    state 0x10, button 3, same_screen YES

ButtonRelease event, serial 27, synthetic NO, window 0x8600001,
    root 0x3f, subw 0x0, time 1901084088, (54,174), root:(58,505),
    state 0x410, button 3, same_screen YES

It there a way to do anything with these buttons?

Michael



More information about the Ale mailing list