linux-cli

To disable middle-click paste, follow the instructions from here:

277488#277488

sudo apt-get install xbindkeys xsel xdotool
 
echo '"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
b:2 + Release' > .xbindkeysrc
 
xbindkeys -p

Then add eval "$(xbindkeys -p)" to .bashrc or similar.