ubuntu修改键盘映射

 

 

ubuntu修改键盘映射

在mac上用virtualbox 安装了ubuntu18.04 LTS。因为在mac上组合快捷键大多数用左Command而不是Ctrl,十分不适应。因此修改了ubuntu的键盘映射,交换左Ctrl和左Command键的功能。css

环境

  • VirtualBox 5.2.12
  • ubuntu 18.04 LTS

操做步骤

  1. 编辑配置文件
$ sudo vi / usr / share / X11 / xkb / symbols / pc
  1. 找到以下两条配置项
key < LCTL > { [ Control_L ] } ;
key < LWIN > { [ Super_L ] } ;
  1. 修改成
key < LCTL > { [ Super_L ] } ;
key < LWIN > { [ Control_L ] } ;
  1. 重启
sudo reboot now

参考
https://askubuntu.com/questions/131900/how-do-i-switch-the-command-key-and-control-key-on-a-macbook-prohtml

相关文章
相关标签/搜索