Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As the title says, I want to increase the number of rows that are passed when I use the mouse wheel for scrolling. I know that there exists ways to do that for Firefox and Chromium, although I want something for the entire system, mainly because of the PDF reader.

I am on a Desktop and use a Microsoft Wireless Mouse 5000.

share|improve this question
One would think that this should be possible from the Mouse & Touchpad system configuration. Too bad, we still need 3rd party software (for now). –  Domi Oct 20 '14 at 17:48

2 Answers 2

up vote 25 down vote accepted

In the Gnome Shell and on Unity it seems that there is no tool or setting for increasing the mouse scroll sensity. But there is a old tool that maybe can help you called imwheel.

Install it with the following command or from the Software Center:

$ sudo apt-get install imwheel

And edit the configfile ~/.imwheelrc with an editor of your choice (e.g. gedit). Fill in the following for increasing the scroll speed for every Command:

None,       Up,     Up,     3
None,       Down,   Down,   3

The 3 is the increase of the scroll. For more specific scroll increases take a look to the manpage

$ man imwheel

or read the README of the project.

You can start it by typing:

$ imwheel

be sure that you don't start the imwheel twice! That's a known bug, but you can stop imwheel with the command:

$ killall imwheel
share|improve this answer
It worked! Thanks, although the only thing I have to complain is that using imwheel disables the function to change between windows just scrolling the mouse over their icons in the Unity Launcher. –  Rodrigo Martins Jun 6 '13 at 13:04
You're welcome. Yesterday I checked your problem, if you only need the increased wheelspeed on your pdf viewer you can replace the ".*" by "Evince" if you're using Evince. Then the Unity-Launcher works as expected. –  tvn Jun 7 '13 at 8:30
Can the numbers go lower? My wheel scrolls way too fast. Trying '1' in place of '3' is still too fast. –  DarenW Sep 5 '13 at 0:47
@DarenW have you tried numbers like '0.5' ou '0.1' ? –  Rodrigo Martins Sep 26 '13 at 16:53
This is a bad, hacky not really working method. In Nautilus the marked files jump 3 lines back or forth instead of actually scrolling. It scrolls when you getting "over the borders" but its like bushing up/down on the keyboard 3 times. Same in sublime text and I guess in a lot of other progs. (Ubuntu 13.10) –  redanimalwar Feb 4 '14 at 5:45

The accepted answer has a config that for whatever reason maps the scrolling to UP and DOWN on the keyboard. Makes no sense to me.

I have found a perfect script that actually maps to the mouse and adds a GUI to set up the mouse speed.

# Version 0.1 Tuesday, 07 May 2013
# Comments and complaints http://www.nicknorton.net
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.
### see if imwheel config exists, if not create it ###
if [ ! -f ~/.imwheelrc ]

cat >~/.imwheelrc<<EOF
None,      Up,   Button4, 1
None,      Down, Button5, 1
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5


CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)

NEW_VALUE=$(zenity --scale --window-icon=info --ok-label=Apply --title="Wheelies" --text "Mouse wheel speed:" --min-value=1 --max-value=100 --value="$CURRENT_VALUE" --step 1)

if [ "$NEW_VALUE" == "" ];
then exit 0

sed -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.
sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.

cat ~/.imwheelrc
imwheel -kill

There is also a video where it is introduced. I have not even finished watching this because I got it running in no time. The following would install the required packages, download the script and execute it for us:

sudo apt-get install -y imwheel
wget http://www.nicknorton.net/mousewheel.sh ~/bin/set-mousewheel
chmod +x ~/bin/set-mousewheel

Set the wheel speed on a nice slider and be happy. Later just change with set-mousewheel command.

Not sure if imweel is automatically started after install, else we need to add it to startup applications.

share|improve this answer
Outstanding stuff! The script doesn't work out of the box in Ubuntu 14.04 LTS, but if I take the config directly out of the script and put it into .imwheelrc, it works like a charm. –  aroll605 May 26 '14 at 0:29
There seems to be a bug with it in 14.04 LTS. Occasionally, it would stop the wheel from working completely, until I restart the process. Happens only on boot and 'imwheel' is included in the startup applications list. –  aroll605 Jun 23 '14 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.