kasper / phoenix

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

Request: provide API for emitting keystrokes #317

Open philc opened 1 year ago

philc commented 1 year ago

Similar to Hammerspoon's hs.eventtap. This allows Karabiner-style keyboard remapping and manipulation to be implemented with Phoenix.

My use case: I have some app-specific bindings I use ("rebind key X, but only in app Y"), currently implemented in Hammerspoon. I'd like to retire Hammerspoon in favor of Phoenix.

The app-specific bindings I have can be expressed in Karabiner, but I find the JSON syntax much harder to work with and debug than procedural javascript.

kasper commented 1 year ago

Hey! I’ll need to research a bit on this one.