Is it possible to have different mouse wheel scroll speed based on application running on top (focused).
Like slower scroll speed for guake for easy reading and higher for web browser to scroll faster.
mouse scrollmouse-wheelxorg
Is it possible to have different mouse wheel scroll speed based on application running on top (focused).
Like slower scroll speed for guake for easy reading and higher for web browser to scroll faster.
Best Answer
Introduction
The following script
dynamic_mouse_speed.py
allows specifying what mouse pointer and/or scroll speed should be when user-defined window has focus.Important: the script requires
imwheel
program to increase scrolling speed. Please install it viasudo apt-get install imwheel
Usage
As shown by
-h
flag:The script allows user to select the window they want to track with mouse click. The mouse pointer will turn into cross and user can select a window they want.
Running
python3 dynamic_mouse_speed.py
alone only shows popup dialog and does nothing by itself.Running
python3 dynamic_mouse_speed.py -s 5
increases scroll speed, whilepython3 dynamic_mouse_speed.py -s -5
slows scroll speed down.python3 dynamic_mouse_speed.py -p -0.9
decreases pointer speed, whilepython3 dynamic_mouse_speed.py -p 0.9
increases pointer speed.-s
and-p
options can be mixed.-v
produces debugging information on command line.Source
Also available as GitHub gist
Notes
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
These can be ignored.Evdev Scrolling Distance
property