I'm currently trying to create some custom keyboard-shortcut mappings with different functions.
For this, I would like the spacebar to act as a modifier / function key (like Ctrl, Shift, Alt, etc.), because it covers a large area and gives me a lot of options to reach many key combinations comfortably.
My idea is to make Shift + Space execute the Super-modifier (probably either Super L or Super R) and then just build all of my custom shortcuts with Super. (The spacebar would just act as a kind of physical extension to the Super-key locations while keeping the regular ones.)
I have already tried to edit /usr/share/X11/xkb/symbols/pc, in which the default spacebar functionality is just:
key <SPCE> { [ space ] };
This is great, because I can simply add a comma and another parameter to get the second-level functionality, like this:
key <SPCE> { [ space, Super_L ] };
However, then the spacebar stops working completely.
Update: I have been able to make the spacebar work normally and execute Hyper L on the second level, but there's a problem creating multiple shortcuts with it, since some software will only see it as Shift + Hyper L and not register the Hyper-modifier correctly.
Is it possible to have the spacebar work normally and act as a modifier key on the second level?