Install packages:
sudo apt-get install xbindkeys xsel xdotool
Create xbindkey configuration file:
# ~/.xbindkeysrc
"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
b:2 + Release
Set xbindkeys to load on startup:
# ~/.bashrc
xbindkeys -p
Log out, log back in, and you should be all set. If you are impatient, simply run xbindkeys -p
This makes the middle scroll unable to be held anymore? I have to click and let go, then it toggles on the scroll instead of being able to just hold, scroll, then release.