kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

Support using the "fn" key as a modifier #320

Closed fabiospampinato closed 1 year ago

fabiospampinato commented 1 year ago

Is it possible to use the "fn" key as a modifier key?

mafredri commented 1 year ago

You can use Karabiner-Elements for this, it uses lower level input capture / rewrite. I doubt it’s possible via the APIs Phoenix uses but I could be wrong.

fabiospampinato commented 1 year ago

Good suggestion, but I'm trying to see if I can find a single-key modifier that I can reasonably use instead, which would allow me to remap the key with "hidutil", without any third-party program.

mafredri commented 1 year ago

I see. I can say with some certainty that you will want a key that behaves like a modifier. I once implemented modifier emulation and it was not the best experience due to having to rely on timeouts/key repeats.

For reference my commit that removed emulation: https://github.com/mafredri/phoenix-config/commit/d94863f6380a59a9bb2cdab742e2a5dc7eafa3f7