歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Ubuntu 修改鍵盤默認布局 Ctrl 與 CapsLock 替換

Ubuntu 修改鍵盤默認布局 Ctrl 與 CapsLock 替換

日期:2017/3/3 12:28:34   编辑:Linux技術

[code]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 將 Caps Lock鍵當作額外的Ctrl鍵

or ctrl:swapcaps to swap Caps Lock and Control.將Ctrl和CapsLock鍵替換For example,

someone looks like

[code]XKBOPTIONS="ctrl:nocaps"
mine looks like

[code]XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"
then reboot

or run

[code]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.

Copyright © Linux教程網 All Rights Reserved