Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 1.85 KB

mouse.md

File metadata and controls

82 lines (55 loc) · 1.85 KB

Mouse Modifications

Fix Mouse Wheel Freezing with VirtualBox

http://www.webupd8.org/2015/12/how-to-change-mouse-scroll-wheel-speed.html

Install

sudo apt-get install imwheel

Config

~/.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

Startup

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

Remapping Mouse Forward and Back Buttons

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

Identifying Keys / Buttons

Other Potential Options

xte

~/.xbindkeysrc

# Mouse Buttons
"xte key ctrl+bracketleft"
m:0x0 + b:8
"xte key ctrl+bracketright"
m:0x0 + b:9