Remapping the Super Key in Ubuntu..

This post was kindly contributed by ProcRun; - go there to comment and to read the full post.

One of my laments about switching over to Ubuntu on my Macbook was the placement of the Super Key and the Control Key.  I’m so used to using the Command key for all of the keyboard shortcuts that the Control key just felt unnatural.

There are a bunch of resources out there on the web and after remapping the wrong keys multiple times, the following finally worked.

Create an file for xmodmap to read in your home directory:

sudo nano ~/.Xmodmap 

Add the following to the file:

clear control
clear Mod4
keycode 37 = Super_L
keycode 133 = Control_L
add control = Control_L
add mod4 = Super_L 

Restart and the remapping should be complete. Again, I’m on an old school Macbook so you may have to find the specific keycodes for your keyboard by using

xev

A big thanks to the thread on Ask Ubuntu

that helped me figure this out.

This post was kindly contributed by ProcRun; - go there to comment and to read the full post.