Joanmarie Diggs writes:
> Hi all.
> 
> I've a traditional mouse and a Wacom tablet both hooked up to one of my
> systems. The mouse is configured via gnome-mouse-properties to be
> left-handed. I'm not surprised that my tablet inherited these settings,
> but it does make the pen unusable because it keeps right-clicking each
> time it comes in contact with the tablet.
> 
> I've googled, but haven't found the solution. Anyone have any ideas for
> getting these devices to co-exist with independent orientations? Is
> there some magic foo I can do in my xorg.conf?
> 
> Thanks in advance. Take care.
> --joanie
> 
> _______________________________________________
> indiana-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

I frequently switch between using an external moust in left-hand mode and
my laptop touch pad which I use in a modified right-hand 2 button mode.
I've attached two shell scripts, left_hand and 2b_mouse, which you can
probably modify to suit your needs.  Both make use of xmodmap(1).

tom
#!/bin/sh
#
# $Id: left_hand,v 1.4 2009/09/01 15:18:51 tw21770 Exp $
#
# Make mouse buttons be left handed:

Fingers="3 2 1"         # straight 3 button mouse
Options="hw"
Pname=`basename $0`
HelpMsg="${Pname} [-h] [-w]

Set up mouse for left handed operation:

-h              Print this message.
-w              Mouse has scroll wheel.  Make wheel button 3"

while getopts "$Options" i
do
        case $i in
        h )     echo "$HelpMsg" >&2 ; exit 0 ;;
        w )     Fingers="2 3 1" ;;
        \? )    echo "$HelpMsg" >&2 ; exit 1 ;;
        esac
done
shift `expr $OPTIND - 1`

em()
{
        echo "${Pname}: $@" >&2
}

# Find out how many buttons are defined

Bcount=`xmodmap -pp | \
        awk '
                NF == 2 { Pb = $1 }
                END     { print Pb }'`

Extra=""
i=4
while [ $i -le $Bcount ] ; do
        Extra="$Extra $i"
        i=`expr $i + 1`
done

xmodmap -e "pointer = $Fingers $Extra"
#!/bin/sh
#
#       $Id: 2b_mouse,v 1.2 2006/02/10 20:16:47 whitten Exp $

Options="h"
Pname=`basename $0`
HelpMsg="${Pname} [-h] 

Set up for two button mouse.  This is handy for people that
do a lot of X windows copy and paste.  Left button remains
the select button, and right button becomes the paste
button.  To get button 3, you need to simultaneously press
both buttons.

-h              Print this message."

while getopts "$Options" i
do
        case $i in
        h )     echo "$HelpMsg" >&2 ; exit 0 ;;
        \? )    echo "$HelpMsg" >&2 ; exit 1 ;;
        esac
done
shift `expr $OPTIND - 1`

em()
{
        echo "${Pname}: $@" >&2
}

# Find out how many buttons are defined

Bcount=`xmodmap -pp | \
        awk '
                NF == 2 { Pb = $1 }
                END     { print Pb }'`

Extra=""
i=4
while [ $i -le $Bcount ] ; do
        Extra="$Extra $i"
        i=`expr $i + 1`
done

xmodmap -e "pointer = 1 3 2 $Extra"
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to