{"id":85,"date":"2007-06-06T13:59:57","date_gmt":"2007-06-06T21:59:57","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=85"},"modified":"2007-06-06T13:59:57","modified_gmt":"2007-06-06T21:59:57","slug":"howto-disable-middle-mouse-paste-in-linux","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/howto-disable-middle-mouse-paste-in-linux\/","title":{"rendered":"HOWTO disable middle-mouse-paste in Linux"},"content":{"rendered":"<p>A coworker couldn&#8217;t stand the fact that, on his linux computer, when he accidentally clicked the mouse wheel, it would paste text. He offered to buy me lunch if I could turn it off. Here&#8217;s how we did it. Run the following command:<\/p>\n<p>> xmodmap -e &#8220;pointer = 1 25 3 4 5 6 7 8 9&#8221;<\/p>\n<p>To persist this behavior, edit ~\/.Xmodmap and add<br \/>\n> pointer = 1 25 3 4 5 6 7 8 9<\/p>\n<p>Next annoyance: My coworker uses Eclipse, and wants to hit the F10 key. GTK (the toolkit underneath Gnome) maps F10 to pop up the application menu. In RHEL\/CentOS 4, there&#8217;s no good way to fix it.  On my Fedora 6 machine, I did the following:<\/p>\n<p>> gconftool-2 &#8211;get \/desktop\/gnome\/interface\/menubar_accel<\/p>\n<p>I saved off the value of that, which was &#8220;F10&#8221;. Then I ran this:<\/p>\n<p>> gconftool-2 &#8211;type string &#8211;set \/desktop\/gnome\/interface\/menubar_accel &#8220;Ctrl-Shift-M&#8221;<\/p>\n<p>It also works to use gconf-editor to edit the key \/desktop\/gnome\/interface\/menubar_accel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A coworker couldn&#8217;t stand the fact that, on his linux computer, when he accidentally clicked the mouse wheel, it would paste text. He offered to buy me lunch if I could turn it off. Here&#8217;s how we did it. Run the following command: > xmodmap -e &#8220;pointer = 1 25 3 4 5 6 7 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/howto-disable-middle-mouse-paste-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;HOWTO disable middle-mouse-paste in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,17],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-linux","category-tech"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}