Linux mouse key pasting function?!!

Source: Internet
Author: User

Reprinted from: http://yjhexy.iteye.com/blog/785564

Ubuntu Mouse key problem, in fact, is not a problem, Ubuntu mouse button is used to quickly paste, but Windows used to, and occasionally hand a point, the result of a lot of trouble
1, open the Firefox mouse button scroll screen function

Editor, first item, advanced--general--Use automatic scrolling #firefox针对ubuntu提供这个功能真是满贴心

2, cancel the middle mouse button paste function
point in the habit of a moment also can not change, with code or text editor, accidentally above more than a lot of pasted code text, this is more trouble, the results can not run. Took a lot of time to find alternative solutions (Source: Ubuntu wiki), you can click the middle mouse button to replace the left or right, scroll up and down the function of the mouse to keep (find some ways to screen the mouse button, scroll up and down can not be used, that also trouble), and Windows is not exactly the same, But better than the original, here's how to simplify:
First step : Querying the mouse device

$ XInput List | grep ' id= '


Get similar results
" Virtual Core pointer "Id=0 [XPointer] "Virtual Core keyboard" id=1 [Xkeyboard]
"at translated Set 2 keyboard" id=2 [xextensionkeyboard]

"pixart USB OPTICAL MOUSE
"id=4 [xextensionpointer]

Second part: Query the mouse button parameter table (can save)

$ xinput get-button-map "PIXART USB OPTICAL MOUSE"

Get Results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 The 10 
is actually the left button 1, middle key 2, right button 3, other keys All silly try a bit, nothing with

$ xinput set-button-map "PIXART USB OPTICAL MOUSE" 1 1 3

The middle Click to replace the same function with the left button, or change to the right, with "1 3 3" can be, the center of the mouse name remember to use the first query out Replacement of

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.