Last active
August 29, 2015 14:08
-
-
Save ovidb/f4c1bb380fbc7322762c to your computer and use it in GitHub Desktop.
Swapping Ctrl with Alt in Ubuntu for Pinky's sake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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