How I remapped my Caps Lock key to Ctrl and made an additional mod key out of Ctrl

The idea came to me when I realized just how unfair it is for Caps Lock, which I never use, to be much easier to press with my small finger that Ctrl. And that I could bind a lot to my former Ctrl key.

So:

In autostart (~/.fluxbox/startup for me):

In ~/srv/mod4:

As a result:

In my .fluxbox/keys I can use mod3 for the key which used to be Ctrl:

And I can use Caps Lock as Ctrl. It really belongs more near the “a”, in my opinion. :)

The keycodes can be found via xev:

2014-10-31--1414752195_857x470_scrot

(“keycode 66” is the keycode of my Caps Lock key, which now gets recognized as Control_L.)