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.