4

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

2
  • How would you then turn caps-lock on and off? Apr 21, 2013 at 13:49
  • I wouldn't. I hate caps lock.
    – uvasal
    Aug 12, 2013 at 19:12

1 Answer 1

1

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!

1
  • the link is gone.
    – pwned
    May 26, 2013 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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