How To Change The Mouse Scroll Wheel Speed In Linux Using imwheel [Quick Tip]

mouse

I’ve never actually needed to modify the mouse scroll wheel speed until recently, when I got a new mouse and I wanted to change the scroll wheel settings. That’s when I noticed there’s no such option in Unity / GNOME Control Center.
I searched for ways to change this under Linux and the easiest to use seems to be “imwheel”, a command line tool that can be used to tweak the mouse wheel behavior and which, among others, can change the scroll speed of the mouse wheel, and I decided to share the information with you.

Here’s what you need to do to change the scroll speed of the mouse wheel if your desktop environment doesn’t have an option for this:

1. Install imwheel. Since the app is available in the official Ubuntu repositories, you can install using Synaptic, Ubuntu Software Center, etc. or use the following command to install it:
sudo apt-get install imwheel

2. Next, create a file called “.imwheelrc” in your home directory – I’ll use Gedit in the command below to open this file:
gedit ~/.imwheelrc

And in this file, paste the following:

".*"
None, Up, Button4, 3
None, Down, Button5, 3
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5

“3” at the end of lines two and three represent the number of lines to scroll (“3” should be default)  – modify this number to suit your needs. Once you’re done, save the file.
The first (“.*”) line from the code used above represents is used to specify in which applications to use those settings. “.*” means everywhere, but you can also apply application-specific settings by changing “.*” to the window name (and add multiple application-dependent settings). Run “man imwheel” for more information.

And finally, the last 4 lines in the code above are there to allow Ctrl / Shift with mouse scroll wheel up / down to work (for instance, to allow zooming in on a webpage in the web browser, etc.), which is the default behaviour.

3. Start “imwheel” (type “imwheel” in a terminal). Important note: make sure you don’t run multiple imwheel instances (if you want to stop any previous instances, run the following command: “killall imwheel”)!

4. Since these settings are only applied when imwheel is running, you should add imwheel to startup (if you use Unity, to do this, open Startup Applications, click “Add” and under both “Name” and “Command” fields, add “imwheel”).

It’s important to mention that imwheel applies the settings available in ~/.imwheelrc when the application starts and it doesn’t update when changing the configuration file. So if you modify the configuration file, you’ll need to close imwheel and start it again to apply / test the changes (you can close/kill it using the following command: “killall imwheel”).
Notes:
  • this will most probably not fix issues such as very fast scrolling, if you encounter such an issue, you can try unplugging and then plugging the mouse back;
  • if you only want to change the scroll wheel speed in Firefox and Chrome, you can do this from within the app or using an extension: Firefox | Chrome, etc.

via AskUbuntu; image via Wikipedia.

from Web Upd8 – Ubuntu / Linux blog http://ift.tt/1NirC9O
via IFTTT

via Blogger http://ift.tt/1YZfwtq

Advertisements

About ishubhamsingh

Hello TechGeeks!! I am Shubham Singh -a student,a mistakemaker,a learner,a TechGeek like you,who wants to share all that i know about softwares,cracks,keygens and general computer tweaks & tricks with you through this blog.

Posted on December 9, 2015, in IFTTT, Web Upd8 - Ubuntu / Linux blog and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: