Simulate the mouse button on the keyboard in Linux

Source: Internet
Author: User
In Linux, use the keyboard to simulate the middle mouse-Linux general technology-Linux technology and application information. The following is a detailed description. The mouse we use now usually has only two keys: left-click and right-click. in linux, you often need to use the right-click button to paste. We usually need to press the left and right buttons together to simulate the middle mouse button, but this is inconvenient after all. In fact, we can use xmodmap to map the mouse to a keyboard button that is not very easy to use.

The following describes how to change the PrintScreen key to the middle mouse button:

Xmodmap-e 'keysym Print = pointer_button2' (the expression format is "keycode xxx = keyname" or "keysym xxx = keyname". The keycode can be obtained through xev, the keysym can be stored in/usr/include/X11/keysymdef. h)

Xkbset mxkbset exp = m you need the xkbset program to change the key-hitting event to a click event.

Xkbset can be downloaded from the following URL: http://www.math.missouri.edu /~ Stephen/software/xkbset/(or xkbset-0.5.tar.gz, this is a local copy)
Related Article

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.