Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using xfce4 and I am trying to do the following: I wanna keep the left ctrl as is while also making the left alt act as a ctrl and the win button act as an alt (I don't need the win button)

I've tried to do these in terminal:

setxkbmap -option altwin:ctrl_alt_win

then this:

setxkbmap -option ctrl:aa_ctrl

But now the left ctrl actually does two things at once: ctrl and win action
(If I press it in emacs I get C-s-)

How do I simply just do that mapping?

share|improve this question

I found an amazing answer to this here: How do I swap Escape and Caps Lock.

The answer was to install Tweak. It worked like a charm for me in swapping Caps Lock with Control.

I tried the setxkbmap route and couldn't get it to work, but Tweak worked fine.

BTW, if you are like me, you'll also want to know that the command below will fix your options in setxkbmap that are now probably all screwed up (not that it seems to have an impact):

setxkbmap -option ''
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.