xmodmap/imwheel
I am having trouble getting xmodmap to remap my mouse buttons upon startup. I.e. I have to manually issue the "/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"" command. I have searched and have found others with similar issues, but what ended up working for them is not working for me. I am using RH 9, and have added the command to my /etc/X11/xinit/xinitrc file. I also tried placing the command in different sections of the file based on a tip that said the call must be made before calling X. It is a 5 button USB Optical Intellimouse. Thanks for the help.
XF86Config:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "CorePointer"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection
xinitrc:
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi
unset XKB_IN_USE
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
Last edited by baudchaser; 03-02-2004 at 11:58 PM.
|