I'd like to configure XKB to use Caps Lock as a way of producing different keys, but I don't want it to appear as a modifier. For example:
- F1 produces
- Caps Lock + F1 produces
F1keypress (i.e. no modifiers)
- Shift + Caps Lock + F1 produces
Shift + F1keypress (only
Shiftcounts as a modifier)
I have partially succeeded with this by assigning Caps Lock to
Hyper_R, but the problem is this only works if
Hyper_R is also set as a modifier, e.g.
Mod3. This means Shift + Caps Lock + F1 actually produces
Shift + Mod3 + F1 so any hotkeys listening for
Shift + F1 don't work because they don't like
Mod3 being present.
Is there any way I can use Caps Lock to change they behaviour of certain keys, without actually having it appear to an X application as a modifier key?
The docs I have read hint that this is possible with advanced XKB configuration but I can't find any details.