http://www.webupd8.org/2015/12/how-to-change-mouse-scroll-wheel-speed.html
sudo apt-get install imwheel
~/.imwheelrc
".*"
None, Up, Button4
None, Down, Button5
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
Add the following to your startup to help combat an issue with forward/back buttons.
Name: Mouse Wheel Fixer Upper
Command: imwheel --kill --buttons "4 5"
Comment: http://www.webupd8.org/2015/12/how-to-change-mouse-scroll-wheel-speed.html
In some cases some applications will not respond to mouse buttons 4 and 5 also known as 8 and 9. Most browsers handle this case but some applications are only expecting browser back or forward button events. This modification maps the mouse 8 and 9 respectively to the browser back and forward buttons.
I also tried out XF86Back
and XF86Forward
which worked fine in browsers, but VSCode did not pick up on them properly - it did catch them, but didn't fully recognize them to work. You can read more here... microsoft/vscode#8641
sudo apt install xbindkeys xdotool
Modify ~/.xbindkeysrc
with:
# Mouse Buttons
# Remap mouse buttons 8/9 to browser back/forward
"xdotool key ctrl+bracketleft"
b:8
"xdotool key ctrl+bracketright"
b:9
Reload .xbindkeysrc
with:
xbindkeys --poll-rc
xev
is super helpful!- http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap
~/.xbindkeysrc
# Mouse Buttons
"xte key ctrl+bracketleft"
m:0x0 + b:8
"xte key ctrl+bracketright"
m:0x0 + b:9