Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I remap my capslock key to be alt + tab. And shift + capslock to be shift + alt + tab?

share|improve this question
    
How would you then turn caps-lock on and off? –  Michael Durrant Apr 21 '13 at 13:49
    
I wouldn't. I hate caps lock. –  uvasal Aug 12 '13 at 19:12

1 Answer 1

up vote 1 down vote accepted

use xsetkbmap or xmodmap

Here is a quick into I have written no avoid forgetting how I did it. I wont tell you how to map those specific keys, but you will be well on your way. There are links to more thorough documentation.

umm... the link: http://genja.org/wordpress/2010/10/setxkbmap-genja/

You need something like the contents of /usr/share/X11/xkb/symbols/compose: partial modifier_keys

xkb_symbols "caps" {
    key <CAPS> { type[Group1]="TWO_LEVEL", [ Multi_key, Multi_key ] };
};

partial modifier_keys
xkb_symbols "102" {
    key <LSGT> { type[Group1]="TWO_LEVEL", [ Multi_key, Multi_key ] };
};

partial modifier_keys
xkb_symbols "paus" {
    key <PAUS> { type[Group1]="TWO_LEVEL", [ Multi_key, Multi_key ] };
};

partial modifier_keys
xkb_symbols "prsc" {
    key <PRSC> { type[Group1]="TWO_LEVEL", [ Multi_key, Multi_key ] };

.. just study the links I gave you and the world will be under your domination in no time!

share|improve this answer
    
the link is gone. –  pwned May 26 '13 at 4:36

Your Answer

 
discard

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.