send key without without being interpreted by skhd
Hello everyone,
I have been using skhd for a while now, and it is the most stable and customisable way of handling key mapping on macos.
However, there is a usecase, where I don't seen to be able to get my way around. It is remapping to another key mapping used by skhd. For exemple, the case, where you want to invert to existing mappings.
"cmd - q" -> "cmd - w" and "cmd - w" -> "cmd -q" // If you would hit cmd - q skhd would eventualy interprete it as cmd -q (And in the way it works now, it is totally normal)
No matter how weird this usecase is (because it has no purpose in itself), I get the problem when applied on other more complex problems.
The goal of this post is to ask if anyone has encountered the problem and found solutions that always works.
So far known solutions:
- osascript to "tell application|system to do something" instead of send keys (doesn't always work)
- It would theoretically be possible to modify skhd to add a tag to tell skhd to ignore the incoming keystroke (wanky but y'all welcome to expand this idea)
Thanks all in advance for the help/brainstorming
I think this is a reasonable/fair request, I'm currently using skhd to re-map multiple application keybinding to my need, I'd like to remap Cmd+K to "arrow down" and "Cmd - comma" to the original Cmd+K shortcut, and as mentionned in this post, using osascript does not always work :/
I think this is a reasonable/fair request, I'm currently using skhd to re-map multiple application keybinding to my need, I'd like to remap Cmd+K to "arrow down" and "Cmd - comma" to the original Cmd+K shortcut, and as mentionned in this post, using osascript does not always work :/
THANK YOU, it does make sense. I have given up trying to achieve this using skhd because I didn't have the time to implement this. I am now using aerospace as a my main key mapper and skhd for my small binds. But ideally, I would have them all in skhd because it seems so clean and more versatile for remapping with rules.