Skip to content
Menu
ComaNotiz ComaNotiz
  • How To’s
  • Network
  • Windows
  • Telefon
  • iPhone
  • Linux
  • Dreambox
  • Repair
  • Office
  • Eagle
  • Temp. Logger
ComaNotiz ComaNotiz

How to deactivate middle mouse button

Posted on 24.06.2020 by Milan

The easy workaround is to disable it completely, with mapping it to a nonexistent button with xmodmap.

xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9 10"

this maps the middle button to button 25 (you can give any number instead of 25 as long as it’s higher than the allocated number of your mouse buttons, which usually goes up to 10-14)

Then add this line as a startup command in Startup Applications.

$ xmodmap -pp
There are 12 pointer buttons defined.

Physical        Button
 Button          Code
    1              1
    2             25
    3              3
    4              4
    5              5
    6              6
    7              7
    8              8
    9              9
   10             10
   11             11
   12             12

How To's Linux Tips & Tricks

Log In

Recent Posts

  • FritzFritz Repeater Specifikations
  • How to Install Windows 11 Without a Microsoft Account
  • Proxmox – Tips / Commands
  • Synology DSM 7 with Lets Encrypt and DNS Challenge
  • Proxmox Resize

Categories

  • 3D Print
  • Apple
  • Audio & Video
  • Dreambox
  • Eagle
  • Electronic
  • Home Asisstant
  • How To's
  • iPhone
  • iPod
  • Konsole
  • Linux
  • Media Wiki
  • NAS
  • Network
  • Office
  • Raspberry Pi
  • Repair
  • Telefon
  • Tips & Tricks
  • Uncategorised
  • Uncategorized
  • Windows
  • Xbox
©2025 ComaNotiz | Powered by Superb Themes