I'm using minimalistic WM, which is controlled by keyboard..
The main question, is it possible ?
I know how to remap existing modifiers, but not how to add a new ones. I'm using arch linux.
X normally has 8 modifiers, which have keysyms assigned to them. Pressing a key results in a keyboard event that's associated with the keysym. If the keysym has a modifier assigned to it, then while that key is down, key events will be tagged with that modifier.
The modifiers, together with common keysym assignments, are:
The distribution of Alt/Hyper/Meta/Super/NumLock amongst Mod1–5 is arbitrary; you may find them in a different order and you may find that some are missing.
8 modifiers is all you get with the standard X library, and some applications don't even let you get at all of them. Two of these (
However, most of the keyboard event processing is handled client-side (i.e. inside each application). So it's possible that a particular application would let you handle more modifiers. The way to do this would be specific to that application (or at least to the library or framework it uses for event processing).
Usually Mod1-Mod5 are combined with the named Modifiers like Shift, Control, Alt, Hyper, Super.
In some WMs it is possible to dissociate these and use them as ten different modifiers. Not all WM's cooperate with this, but some do.
The important bit is in your