Apr 19, 2009

Swapping Control & Alt in Linux

More for my own reference and in preparation of me completely gutting my system, I'm posting the contents of my .xmodmaprc file which swaps the left control and alt-keys. This allows me to use my linux laptop more like I used my mac, with the command key.

Feel free to copy the contents to a file called .xmodmaprc and run it using the xmodmap command:

xmodmap .xmodmaprc

remove Control = Control_L
remove Mod1 = Alt_L
keysym Control_L = Alt_L
keysym Alt_L = Control_L
add Control = Control_L
add Mod1 = Alt_L

No comments:

Post a Comment