Quantcast
Channel: Philipp Klaus's Computing Blog » Ubuntu 11.04
Viewing all articles
Browse latest Browse all 10

Use Middle Mouse Button in a Parallels 6 Virtual Machine running Linux on a MacBook Pro

$
0
0

Sometimes you have to use the middle mouse button, sometimes it’s just convenient to do so. Either way, if you want to use it on a virtualised Linux machine on a Parallels 6 (or any other virtualisation software) you can’t out-of-the box on a MacBook Pro as the touch pad offers no ‘middle mouse button’.

To get around this, you can assign the right command key (code: 134) of your keyboard as middle mouse button:

First you need to install xkbset:

sudo apt-get install xkbset

Then to assign the key, run:

xmodmap -e "keycode 134 = Pointer_Button2"
xkbset m

If you to use any other key than the right command key as your middle mouse button, just find out the key code by running xev on the terminal and pressing the key then.

Resources


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images