Mouse wheel in X11

by

First off I am running Fedora Core 1, and 2.6 kernel

I used imwheel version 1.0.0.pre1. imwheel

/etc/X11/XFConfig Input Device section

code:

Section “InputDevice”

# Modified by mouseconfig
# Modified by mouseconfig

Identifier “Mouse0”
Driver “mouse”
#2.6 kernel, device changed…if u run 2.4 leave “Device as is”
Option “Device” “/dev/input/mice”
Option “Protocol” “ExplorerPS/2”
Option “Emulate3Buttons” “no”
#Option “ZAxisMapping” “4 5”
Option “ZAxisMapping” “6 7”
Option “Buttons” “7”
EndSection

create a script to start when x does to map the mouse
/etc/X11/xinit/xinitrc.d/mouse

code:

#!/bin/sh
xmodmap -e “pointer = 1 2 3 6 7 4 5”

~/imwheelrc file

code:

“mozilla*”
None, Up, Alt_L|Left
None, Down, Alt_L|Right

“XTerm”
None, Up, Alt_L|Control_L|S
None, Down, Alt_L|Control_L|T

“(null)”
None, Up, Alt_L|Left
None, Down, Alt_L|Right

# this should be last
“.*”
None, Up, Alt_L|Control_L|P
None, Down, Alt_L|Control_L|O

run this…or put in a script for startup
/usr/local/bin/imwheel -k -b “67”

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: