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.


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

xmodmap ~/srv/mod4

In ~/srv/mod4:

keycode 66 = Control_L
clear Lock
keycode 37 = Hyper_L
clear mod4
add Control = Control_R Control_L
add mod4 = Super_L Super_R
add mod3 = Hyper_L

As a result:

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

Mod3 t :ExecCommand thunar

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:


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