Hi - sorry if I'm not posting in a good format, I've only just joined this site. I've been having a lot of problems trying to simulate the [Left, Up, Down, Right] keys (no modifiers) using CapsLock + [j, k, l, semicolon], respectively.
I've got quite a long way remapping
A possible way around this is to execute a script (already made and functional) that remaps the j,k,l,; keys when the
If there's a way of using the above solution by running my script when
Thanks in advance!
I've got quite a long way remapping
CapsLock
to Hyper
and mapping that from mod4
to mod3
, but whatever it's mapped to causes apps to interpret the arrow keys differently. For example, Firefox refuses to scroll most webpages if a modifier key is currently pressed, meaning Hyper+Down
(technically CapsLock+l
) usually does nothing.A possible way around this is to execute a script (already made and functional) that remaps the j,k,l,; keys when the
Hyper
key is depressed (and then marks it as 'released' so as not to confuse programs), then maps them back when the physical CapsLock
key is actually released. However, I can't seem to find a way of executing a command on key down/release.If there's a way of using the above solution by running my script when
Hyper
(CapsLock) is specifically depressed or released, that would be perfect. Any other method for simulating an arrow key press with no modifiers would be greatly appreciated as well though. Could someone give me some information about this please?Thanks in advance!