Back button to middle mouse button


Protect

I want to map the "back" button (xev means "button 7") of a mouse (A4Tech X-7) as the middle mouse button. Is there a way to do this? I'm lost in Google and only find how to map buttons to keyboard shortcuts using xbindkeys etc.

  • Operating system: Centos 6.3 (x86_64)
  • DE : KDE 4.3.4

ps I can toggle (using xmodmap) the "back" button and the middle button no problem, but is there a way to make them both act as middle mouse button?

Gilles 'Stop being evil'

You cannot map two physical buttons to the same logical button. All you have to do is swap the buttons ( echo 'pointer 1 7 3 4 5 6 2' | xmodmap -). This is a low-level limitation of X11. As described in the following documents :XSetPointerMapping

However, no two elements can have the same non-zero value, otherwise a BadValue error will result.

Your best bet is to use a program that, for example xbindkeys, sends a fake button 2 when button 7 is pressed. in .xbindkeysrc:

"xdotool mousedown 2"
  b:7
"xdotool mouseup 2"
  b:7 + Release

Related


Back button to middle mouse button

Protect I want to map the "back" button (xev means "button 7") of a mouse (A4Tech X-7) as the middle mouse button. Is there a way to do this? I'm lost in Google and only find how to map buttons to keyboard shortcuts using xbindkeys etc. Operating system: Cento

Back button to middle mouse button

Protect I want to map the "back" button (xev means "button 7") of a mouse (A4Tech X-7) as the middle mouse button. Is there a way to do this? I'm lost in Google and only find how to map buttons to keyboard shortcuts using xbindkeys etc. Operating system: Cento

Which mouse button is in the middle?

Radu Murzea: I'm currently developing a program in Java where a specific event has to be fired only when the user clicks with the left and right mouse buttons at the same time. Since this is a bit unconventional, I decided to test it first. here is: import jav

Which mouse button is in the middle?

Radu Murzea: I'm currently developing a program in Java where a specific event has to be fired only when the user clicks with the left and right mouse buttons at the same time. Since this is a bit unconventional, I decided to test it first. here is: import jav

Disable middle mouse button

Tom Hamilton Stubber So I've tried going through various other questions, but they mostly focus on disabling middle mouse button paste. Basically, the middle mouse button on my Logitech G500s is broken and keeps "clicking" randomly, increasing any chance of do

Paste with the middle mouse button

Sriharsha Kalluru Are there any apps that use the middle button to paste the same text every time? I've seen tools to paste clipboard text, but I want the same text to be pasted every time I click the middle mouse button. Karan With AutoHotkey the following ca

Disable middle mouse button

Ethan Hunt I need a question to help you, how to disable middle mouse click on any link to open new tab in IE 7,8,9. I have tried many things like return false; e.cancelBubble = true;e.returnValue = false; But there is no way to stop IE's ability to open a Ne

Which mouse button is in the middle?

Radu Murzea: I'm currently developing a program in Java where a specific event has to be fired only when the user clicks with the left and right mouse buttons at the same time. Since this is a bit unconventional, I decided to test it first. here is: import jav

Paste with the middle mouse button

Sriharsha Kalluru Are there any apps that use the middle button to paste the same text every time? I've seen tools to paste clipboard text, but I want the same text to be pasted every time I click the middle mouse button. Karan With AutoHotkey the following ca

Vaadin Grid middle mouse button

F43nd1r I'm trying to simulate normal browser behavior in a vaadin grid, which includes middle-clicking to open in a new tab: addItemClickListener(e -> { boolean newTab = e.getMouseEventDetails().getButton() == MouseEventDetails.MouseButton.MIDDLE

How to handle the middle mouse button?

Gibbs I have an ember component that generates a set of user groups. When the user clicks on one of the list components, it calls the linkAction defined in that component and takes the user to the specific page associated with that list item. However, when the

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read many docs and

How to handle the middle mouse button?

Gibbs I have an ember component that generates a set of user groups. When the user clicks on one of the list components, it calls the linkAction defined in that component and takes the user to the specific page associated with that list item. However, when the

Vaadin Grid middle mouse button

F43nd1r I'm trying to simulate normal browser behavior in a vaadin grid, which includes middle-clicking to open in a new tab: addItemClickListener(e -> { boolean newTab = e.getMouseEventDetails().getButton() == MouseEventDetails.MouseButton.MIDDLE

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read a lot of docs

Firefox middle mouse button scrolling

pixel developer How do I get the middle mouse button to work properly in Ubuntu? Clicking the middle button doesn't show the arrow, which allows me to scroll the page by moving the mouse. information: Firefox 3.6.8 Mouse: Microsoft Intellimouse Explorer 3.0 Is

Firefox middle mouse button scrolling

pixel developer How do I get the middle mouse button to work properly in Ubuntu? Clicking the middle button doesn't show the arrow, which allows me to scroll the page by moving the mouse. information: Firefox 3.6.8 Mouse: Microsoft Intellimouse Explorer 3.0 Is

Emulate middle mouse button with AutoHotKey

Buck I want to write a simple script (single line?) to map left shift + right mouse button to middle mouse button (I don't actually have middle mouse button because it's a trackpad). I tried this variation: #(LShift & RButton)::MButton or (LShift & RButton::M

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read a lot of docs

Vaadin Grid middle mouse button

F43nd1r I'm trying to simulate normal browser behavior in a vaadin grid, which includes middle-clicking to open in a new tab: addItemClickListener(e -> { boolean newTab = e.getMouseEventDetails().getButton() == MouseEventDetails.MouseButton.MIDDLE

How to handle the middle mouse button?

Gibbs I have an ember component that generates a set of user groups. When the user clicks on one of the list components, it calls the linkAction defined in that component and takes the user to the specific page associated with that list item. However, when the

How to handle the middle mouse button?

Gibbs I have an ember component that generates a set of user groups. When the user clicks on one of the list components, it calls the linkAction defined in that component and takes the user to the specific page associated with that list item. However, when the

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read a lot of docs

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read a lot of docs

Alternative hotkey for middle mouse button

some people A few days ago, my middle mouse button broke and could only scroll. The problem was that I used this button a lot and it was the reason he broke, so I searched for a way to "replace" his function and found out about AutoHotKey. I read many docs and

"Middle Mouse Button" pastes where the mouse cursor is

Dennis Kuhn [EDIT] : The observed problem is misleading, as it turns out that it stems from the behavior of Google Doc. See the accepted answer. Is it possible to configure the "middle mouse button"-paste option to paste text not where the text cursor is, but

How to disable the "back" button on the mouse?

Sergiy Belozorov I have purchased a Microsoft bluetooth laptop mouse 5000. It does exactly what I want, except for the "back" button on the left. I often hit it with my thumb and the browser returns. I'm not used to this behavior as my old mouse didn't have su

How to disable the "back" button on the mouse?

Sergiy Belozorov I have purchased a Microsoft bluetooth laptop mouse 5000. It does exactly what I want, except for the "back" button on the left. I often hit it with my thumb and the browser returns. I'm not used to this behavior as my old mouse didn't have su

How to map the middle mouse button for double click?

Kira Ubuntu 18.04. When I click the middle mouse button, it should double click. thanks. Edit: Using the Unity desktop. unknown OS: Ubuntu 18:04 Required packages: xdotoolandxbindkeys you can install these packagessudo apt install xdotool xbindkeys gedit .xbin