How to activate the **paste** when pressing both mouse buttons in Ubuntu

2

Usually in linux you can mark text and the point the mouse somewhere and press both buttons simultaneously and it will paste the marked text.
I recently installed the new version of Ubuntu (9.10) and I see this feature is not working.
How do I enable it?

Itay Moav -Malimovka

Posted 2009-12-08T13:52:32.230

Reputation: 914

Answers

2

Actually the default behaviour always was to press the third button, i.e. the scroll wheel to paste. Most probably the default setting doesn't include the "Emulate3Button" directive anymore, because everybody had a scroll-wheeled mouse for years nowadays :)

What can you do? Search for the "Emulate 3 buttons" option in your mouse control panel; alternatively edit /etc/X11/xorg.conf and add the line to the corresponding section like this :

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
    Option       "Emulate3Buttons" "yes"
EndSection

<rant> Please notice that most current distros don't come with /etc/X11/xorg.conf anymore; the X server automatically sets up itself, with the very annoying consequence that when the default automatic setting doesn't fit your taste, it's a pure PITA to change.</rant>

wazoox

Posted 2009-12-08T13:52:32.230

Reputation: 1 285

0

If X.org is using hal to configure itself, you'll need to edit /etc/hal/fdi/policy/11-x11-input-extra.fdi (the actual file name isn't important and so may be different).

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
    <device>
        <match key="info.capabilities" contains="input.mouse">
            <merge key="input.x11_options.Emulate3Buttons" type="string">yes</merge>
        </match>
    </device>
</deviceinfo>

user1686

Posted 2009-12-08T13:52:32.230

Reputation: 283 655

1I hate the weird trend in recent releases to make things less transparent and harder to configure. How does putting X config in this weird four-levels-deep subdirectory with opaque grammar make things better? – CarlF – 2009-12-08T15:44:52.007

Eh, at least it has support for hotplugging now. (I heard they're going to get rid of hal soon though.) – user1686 – 2009-12-08T18:37:19.570