Description
I have a vague idea in my head of being able to programmatically change layers when the focused application changes.
As I mentioned on Reddit, komorebi
has an event stream that can be subscribed to and acted upon; the idea I have looks like writing a daemon to respond to FocusChange
events from komorebi
by triggering LayerChange
events in kanata
.
The concrete use case I have for this right now is automatically changing to my ff
layer for Vim-like navigation in Firefox whenever it takes focus and switching back to my base layer whenever any other application takes focus. I'm sure as I add more and more application-specific layers this sort of functionality would become exponentially more useful and ergonomic for long sessions at the computer.
This feature seems like it could naturally fit into the work that is being done in #44, which the server responding to client messages to trigger layer changes (and maybe other actions in the future?).
Let me know what you think!