您的位置:首页 > 其它

Ubuntu 13.10 has no way to modify the keyboard layout

2013-10-18 17:43 459 查看
Just installed Ubuntu 13.10 Desktop, has no Chinese input method now. Type English words for now.
GCC is 4.8.1, clang is 3.4, boost is 1.54, emacs is 24, everything is newest, enjoy all these.
But no GUI way to switch Caps Lock and Ctrl keys. Refer this question: http://askubuntu.com/questions/149971/how-do-you-swap-or-remap-control-and-caps-lock-keys-in-xubuntu
Another way:

sudo vi /etc/default/keyboard
then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key or ctrl:swapcaps to swap Caps Lock and Control.

For example, mine looks like

XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"
then run

sudo dpkg-reconfigure keyboard-configuration
The reason this way is better is that it will take effect on the virtual consoles (e.g. Ctrl+Alt+F1) as well as in the graphical desktop.

shareimprove this answerI use this:
ctrl:swapcaps

when run dpkg-reconfigure keyboard-configuration command, just press enter key several times to apply default settings.
Do not need to restart computer, it works immediately.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu