m1gin

https://wiki.archlinux.org/index.php/IMWheel

http://www.nicknorton.net/?q=node/10

IMWheel is a tool for tweaking mouse wheel behavior, on a per-program basis. It can map mousewheel input to keyboard input, increase mousewheel speed, and has support for modifier keys.

Default settings file: ~/.imwheelrc

After changing the settings run with -kill parameter to kill the running process and start new.

  • imwheel -kill

Run in debug mode:

  •  imwheel -d --debug --kill

Getting the window class string
Run xprop to get the class string. The program will exit when a window is clicked.

  • xprop WM_CLASS | grep -o '"[^"]*"' | head -n 1


Sample configuration:

-----------------------

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


".*-chrome*"
None, Up, Button4, 2
None, Down, Button5, 2


# Speed up scrolling for chromium and pass unchanged for zoom
"^chromium-browser$"
    None, Up, Button4, 4
    None, Down, Button5, 4
    Shift_L,   Up,   Shift_L|Button4, 4
    Shift_L,   Down, Shift_L|Button5, 4
    Control_L, Up,   Control_L|Button4
    Control_L, Down, Control_L|Button5

-------------------------------

Add to: