swapping cmd/super and ctrl keys on linux

This post is for people switching from mac to linux. The most frustrating part of the transition which i face was getting accustomed to keyboard shortcuts. In mac world most things are cmd + X but with linux/windows it’s ctrl + X. So just swapping super/cmd with ctrl seems to be the easiest way to make things better. Here are steps to do the same

  1. fire up terminal and modify the file /usr/share/X11/xkb/symbols/pc using your favorite editor
    sudo xed /usr/share/X11/xkb/symbols/pc
  2. file looks something like this swapkeys
  3. notice the lines key <LCTL> and key <LWIN> modify them to looks as in image above do the same for RCTL and RWIN.
  4. logout and you’re done.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s