5

I have a Logitech M560 mouse, but I do not know how to map the middle button to pasting, as is default in my other mouse.

I ran 'xev' and clicked the middle button in the white box. The output includes 'button 1'. So, I want to map button 1 to the 'paste selection' as clicking the right and left mouse buttons simultaneously does with my mouse now.

Braiam
  • 69,112
Cokes
  • 171

2 Answers2

5

I had the same issue today (2016-08-29). It is unclear what caused it since I didn't upgrade anything in the past 4 days.

Rebooting didn't help.

Key observation: xev wasn't showing any event coming from the mouse when clicking the middle mouse button (scrollwheel) inside the xev little square. This indicated some low-level driver issue as opposed to an application config issue.

Mouse selection was working fine: clicking Shift+Insert or running xsel from a terminal were both pasting the current selection.

Only the pasting via the middle mouse button didn't work. The problem affected all applications, including firefox and terminals.

Eventually, this fixed it for me.

sudo dpkg-reconfigure xorg
arielf
  • 2,883
0

this is my configuration:

~$ cat .xbindkeysrc |egrep -v "^$|^#"
"xte 'mouseclick 2'"
    m:0x50 + c:134

In this way if made "work" the middle button.

I choose the text I need to copy/paste while holding the right button, after choosing where to paste I click button. If need to paste again the same text, since the square button doesn't raise the same events every time, I'll click it quickly twice.

If you select another text the event scattered from the square button is always the one that makes xte to emulate the middle click.

Is not perfect but better than not having middle click at all.