{"id":720,"date":"2020-06-24T23:22:55","date_gmt":"2020-06-24T22:22:55","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=720"},"modified":"2020-06-24T23:22:55","modified_gmt":"2020-06-24T22:22:55","slug":"how-to-deactivate-middle-mouse-button","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=720","title":{"rendered":"How to deactivate middle mouse button"},"content":{"rendered":"\n<p>The easy workaround is to disable it completely, with mapping it to a nonexistent button with xmodmap.<\/p>\n\n\n\n<p><code>xmodmap -e \"pointer = 1 25 3 4 5 6 7 8 9 10\"<\/code><\/p>\n\n\n\n<p>this maps the middle button to button 25 (you can give any number instead of 25 as long as it\u2019s higher than the allocated number of your mouse buttons, which usually goes up to 10-14)<\/p>\n\n\n\n<p>Then add this line as a startup command in Startup Applications.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ xmodmap -pp\nThere are 12 pointer buttons defined.\n\nPhysical        Button\n Button          Code\n    1              1\n    2             25\n    3              3\n    4              4\n    5              5\n    6              6\n    7              7\n    8              8\n    9              9\n   10             10\n   11             11\n   12             12\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The easy workaround is to disable it completely, with mapping it to a nonexistent button with xmodmap. xmodmap -e &#8220;pointer = 1 25 3 4 5 6 7 8 9 10&#8221; this maps the middle button to button 25 (you can give any number instead of 25 as long as it\u2019s higher than the allocated&#8230;<\/p>\n","protected":false},"author":1,"featured_media":718,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6,13],"tags":[],"class_list":["post-720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-s","category-linux","category-tips-tricks"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=720"}],"version-history":[{"count":1,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/720\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/720\/revisions\/721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/media\/718"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}