View Full Version : [SOLVED] Switching the Alt and Ctrl keys
June 15th, 2011, 09:41 PM
I am feeling uncomfortable with the Ctrl key far to my left and I almost never use my Alt key.
So I was wondering if there is any way to reverse them?
I heard about xmodmap but I an sure how to use it.
June 15th, 2011, 09:45 PM
maybe system -> preferences -> keyboard -> click options button
June 15th, 2011, 09:54 PM
I go to Ctrl key position and all I see is Right Ctrl as Right Alt.
I need the left ones or both sides.
June 16th, 2011, 06:38 PM
save the file
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
remove Control = Control_R
remove Mod1 = Alt_R
keysym Control_R = Alt_R
keysym Alt_R = Control_R
add Control = Control_R
add Mod1 = Alt_R
this is just a quick solution. If keep swapping keys when you log out and loggin.
if you want a more perment solution
post the output of
xmodmap -pke | grep -i "alt\|control"
June 17th, 2011, 01:18 AM
Thank you. It was exactly what I needed.
June 17th, 2011, 02:20 AM
there always a problem with loggin out and loggin in, unless you only run it manually
June 17th, 2011, 08:11 PM
I will put it in my .xsession to be run every time my computer boots...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.