Here are the relevant parts of my .xkb file. Note that the "osfUp" code is code I found elsewhere (don't remember where). Just repeat it for Left, Right and Down.
I first added this new "THREE_HYPER" using three levels (you can add more levels if you fancy that):
I first added this new "THREE_HYPER" using three levels (you can add more levels if you fancy that):
Then the "interpret" does the magic: And for each key, assign the arrow key redirection you want (showing only "i" for up here): I'd say that it's not a job for xmodmap but for .xkb.Also I don't use xmodmap at all: I set everything, including all the modifiers, from my .xkb file.
My xmodmap output for Hyper (which I set, from .xkb, as mod5):
You'll want to read on .xkb but this should get you started.