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
thank you! I wasted 15 minutes to operate out this leftover from the past, so I can use my other leftover from the past - the trackpoint to scroll my IDE without pasting snippets all over the place :)