Changing keyboard mapping solution under Linux _unix Linux

Source: Internet
Author: User
Linux Xmodmap Modify keyboard mappings Caps_lock and super_l swaps

Change the awesome window manager to go. Because the unity of Ubuntu is still not very stable. Occasionally stuck for half a day, can not stand decisive will once awesome. It's too much to say with Win/super. Pondering for a long time still not very accustomed to, think or the CAPS lock and super to change.

with the ~$ xev |grep KeyCode Press the two keys you want to interchange to the following information :

1 State 0x50, KeyCode (Keysym 0xffeb, super_l), Same_screen YES, 2 state 0x10, KeyCode (Keysym 0xffe5, Caps_lock), S Ame_screen YES, then build. Xmodmap Enter the following content

1 Clear mod4 2 clear lock 3 keycode-caps_lock nosymbol caps_lock nosymbol caps_lock 4 keycode = super_l Nosymbol super_l nosymbol super_l 5 Add mod4 = super_l 6 Add lock = Caps_lock the last execution xmodmap. xmodmap && exec Awesome will take effect.

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.