How to Use the diskless multimedia keyboard in linux

Source: Internet
Author: User
For details about how to use the diskless multimedia keyboard in linux-Linux general technology-Linux technology and application information, see the following. Many multimedia devices only come with drivers in windows, but we purchased them to use their convenient one-click calling function. Isn't it possible to use high-end multimedia keyboards when linux is used?

Some time ago, when I was in Beijing, I went to Zhongguancun to see Microsoft's ergonomic 4000 keyboard.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // img2.zol.com.cn/product/1/955/ceORzEHieyzM.jpg'); ">

But after all, it is something from Microsoft. If you want to use it in linux, there must be no driver. After finding a solution on the Internet for a long time, I finally found a software called Xbindkeys. This software allows you to execute shell commands by using a specific keyboard button or mouse. Everything is customized by its configuration file, which is very free and flexible. Next, we will introduce how to use it.

First, we need to install Xbindkeys, which is already included in ubuntu7.04 system. Just run apt-get install. Of course, you can also download the latest source code package from your website to compile and install http://hocwp.free.fr/xbindkeys/xbindkeys-1.8.2.tar.gz. After downloading the compressed file, decompress it to the directory. You can find out the installation method from the instructions, which is actually simple make install and configure.

Program Management is performed through the. xbindkeysrc configuration file in the user directory. First

Xbindkeys? Defaults> ~ /. Xbindkeysrc

To create the default configuration file, and then open it, you will see the basic structure inside is as follows:

"Xbindkeys_show"
Control + shift + q

# Set directly keycode (here control + f with my keyboard)
"Xterm"
C: 41 + m: 0 × 4

# Specify a mouse button
"Xterm"
Control + B: 2

The file structure is very clear. First, the commands that can be executed by pressing keys can be enclosed in double quotation marks, and then how to execute these commands through hotkey combination, you can also enter

Xbindkeys? Show

This command is used to view the above content. If you want to know which key values correspond to the command, run the following command:

Xbindkeys-mk

A dialog box is displayed, prompting you to click the key. When you press a key, the terminal will display the key expression code and the bound command.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // likunarmstrong.googlepages.com/multimedia-keyboard.png'); ">

We can see that the g and f I typed have no command binding. The background behind it is the prompt box. I have maximized it, otherwise I cannot see it clearly.

Once you bind the command and the key, you can run the program through xbindkeys. Then, the program listens to your key actions in the background and starts the corresponding program once there is a corresponding one.

Of course, if you think this configuration method is too cumbersome, you can use apt-get install xbindkeys-config to download its graphical Configuration tool. Note that

Xbindkeys? Defaults> ~ /. Xbindkeysrc

Command before using this tool.
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.