Life Since 1985

Happy Hacking
linux下eclipse的安装和配置
linux下乱码的解决

It's so coooooool!!! 交换你的caps-lock和ctrl

david kei posted @ 2010年8月09日 23:37 in Method with tags emacs , 3397 阅读

在emacs中ctrl确实难按了一些 最近看到一篇文章就是教怎样将caps-lock和ctrl映射交换的,看了一下觉得很有道理就按照他的方法换了。It's so cool!!!

1.windows系统下:

要想在windows中实现这个互换,需要修改注册表。从开始菜单中选择“运行”,输入regedit。在左边的树状视图中,找到: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout 点击 KeyboardLayout 项,使之获得焦点。再从“编辑”菜单中选择新建一个二进制值,命名为 "Scancode Map",它的类型应该显示为 REG_BINARY。 然后选择这个新建的"Scancode Map"值项,用“编辑”菜单中选择修改二进制值,在二进制编辑对话框中,输入下列数据:

0000: 00 00 00 00 00 00 00 00

0008: 03 00 00 00 3A 00 1D 00

0010: 1D 00 3A 00 00 00 00 00

2.linux系统中: 在linux的X-Window中,可以使用xmodmap工具。在你的主目录新建一个名字为.xmodmap的文件,如果已经存在则只需修改。向该文件加入下列内容:

!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L

保存,再向你的 /etc/rc.local 文件加入一行:

xmodmap ~/.xmodmap 2>/dev/null

3.在Mac OS X(Panther或Jaguar)中,你得安装一个修改过的键盘驱动,这说来有些吓人,但是很有效。

这儿有个关于驱动的讨论: http://www.macosxhints.com/article.php?story=20031102032521826 如果你用的不是Mac笔记本,好像有一个XML文件可以编辑来实现,可以参考这儿: http://www.eecs.wsu.edu/%7Eschneidj/mac-os-x-10.3.html#swap

下面的URL有一条关于在其它系统上实现的信息: http://www.manicai.net/comp/swap-caps-ctrl.html

ps:这是我以前博客的一篇文章,已经有点过时了,在linux中修改.xmodmap的方法交换caps lock和ctrl是通用的,不过对于gnome来说现在有着更为简单的方法,gnome中的键盘选项直接就支持交换ctrl键盘的位置。

NCERT Sanskrit Quest 说:
2022年9月27日 18:37

The Sanskrit Language is one of the important languages and those 2nd Standard students of English Medium, Hindi Medium and Urdu Medium crossed it as their Second or Third Language. The Sanskrit language helps students to about the Indian culture and history of our country etc. So students who chose the Sanskrit language as their optional language can download NCERT Sanskrit Sample Paper 2023 Class 2. NCERT Sanskrit Question Paper Class 2 Learning the Sanskrit language should begin from the foundation of Education to enable students to understand the language without any difficulties. To know the examination question pattern and scheme of the exam everyone can download NCERT Sanskrit Sample Paper 2023 Class 2 for all formats of exams conducted in Term 1, and Term 2.

Emma 说:
2022年12月29日 00:26

If you want to add some pizzazz to your keyboard, try swapping your caps lock and control keys. It's so coooooool!!! You can still use all the shortcuts Lab grown diamonds you're used to, but everything will be in caps. Just make sure you don't accidentally hit caps lock when you're trying to use control-C to copy something.

zaiya 说:
2022年12月31日 08:07

This is a really cool tip! If you swap your caps lock and ctrl keys, you can avoid having to engagement rings fumble for the right key when you're trying to type in all caps. Just hold down the ctrl key and press the letter you want to be capitalized.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter