Linux: Making Middle-Click with Right and Left Click


I installed VirtualBox on Windows 10 and tried to use Lubuntu. However, by default, even when I pressed both left and right click buttons simultaneously, it didn’t work as a middle-click. So, I had to make some changes in the settings because middle-click is essential for paste operations.

Environment

  • Lubuntu (Ubuntu 16.10)

Method

Execute sudo vim /usr/share/X11/xorg.conf.d/middle-mouse-button.conf and add the following lines: