How komokana and kanata work together
masterConcept: Application-Aware Layer Switching
komokana acts as a bridge between komorebi (a tiling window manager) and kanata (a keyboard remapper).
- Event Listening:
komokanalistens to window focus events emitted bykomorebivia Named Pipes. - Rule Matching: It compares the active window's executable name (
exe) and title against yourkomokana.yamlrules. - Layer Switching: When a match is found,
komokanasends a command tokanatavia a TCP server to switch the keyboard to the specifiedtarget_layer.
Requirements for Communication
- komorebi: Must be running to provide window focus events.
- kanata: Must be running and started with the
--portflag to allowkomokanato send layer-switch commands via TCP.