How to disable middle mouse button

I don"t favor having actually the middle mouse switch paste, bereason I often end up via uncompilable code in Eclipse. How have the right to I turn this off (in all programs)? I"m running Fedora.

You watching: How to disable middle mouse button


*

*

This solution will certainly job-related globally and preserve the middle mouse functionality.

Install xbindsecrets xsel xdotool

Place this in ~/.xbindkeysrc

"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"b:2 + ReleaseRefill xbindkeys -p

Run xbindtricks on startup, pkill xbindsecrets to stop.

See more: Behringer U-Phoria Umc202Hd Driver Download, Behringer U


*

In Fedora 24 you have the right to install gnome-tweak-tool using the adhering to command:

$ sudo dnf install gnome-tweak-toolOpen gnome-tweak-tool and go to the "Keyboard and also Mouse" tab and also disable "Middle-click-Paste".


*

*

Scrollwheel mice assistance a middle-button click event when pressing the scrollwheel. This is a good feature, however you might uncover it irritating. Fortunately it have the right to be disabled.

See more: My New Dell Inspiron 13 7000 Fan Noise : Dell, Overheating And/Or Loud Fan On Inspiron 13 7000

First, you need to understand the id of the mouse, favor this:

$ xinput list | grep "id="which prints something favor

⎡ Virtual core tip id=2 ⎜ Virtual core XTEST tip id=4 ⎜ PixArt Dell MS116 USB Optical Mousage id=12 ⎣ Virtual core keyboard id=3 Virtual core XTEST keyboard id=5 Power Button id=6 Video Bus id=7 Power Button id=8 Sleep Button id=9 Dell KB216 Wired Keyboard id=10 Dell KB216 Wired Keyboard id=11 Eee PC WMI hotkeys id=13 My Dell Usb computer mouse has actually published here for which id=12

so, I deserve to see the my computer mouse button mapping like:

$ xinput get-button-map 12which prints

1 2 3 4 5 6 7 8 9 10 11 12here just the first 3 numbers have actually meaning for me. They represent the left, middle, and ideal computer mouse butlots.

I deserve to turn the middle mouse button off by setting it to 0:

$ xinput set-button-map 12 1 0 3Or I can revolve the middle-computer mouse button into a left-computer mouse switch by establishing it to 1:

$ xinput set-button-map 12 1 1 3 ref. connect https://wiki.ubuntu.com/X/Config/Input