Skip to content

Instantly share code, notes, and snippets.

@ovidb
Last active August 29, 2015 14:08
Show Gist options
  • Save ovidb/f4c1bb380fbc7322762c to your computer and use it in GitHub Desktop.
Save ovidb/f4c1bb380fbc7322762c to your computer and use it in GitHub Desktop.
Swapping Ctrl with Alt in Ubuntu for Pinky's sake
I figure out that I need to make this swapping when my pinky started aching. I also mapped right Alt because I noticed some strange behavior with the window switcher, when using Alt_R. It would automatically switch on release, instead it waited for me to press Enter to do the switch so, I override it with Alt_R. Now it works like a charm and my pinky is very happy!
How it's done:
touch ~/.Xmodmap
then add contents from Xmodmap
then run:
xmodmap ~/.Xmodmap
clear control
clear mod1
keycode 37 = Alt_L Meta_L
keycode 108 = Alt_L Meta_L
keycode 64 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment