-
|
Hey, I am experimenting a lot with kanata with the goal that on layer change and of modifier active (home row mods) I would like to see that in sketchybar. to trigger an update I have to call: I have SKHD running that catches some keys, e.g.: My current approach was using kanata to send on hold and send on release not only the modifier, but also some weird key combos (e.g. hyper + q when using the a homerow mod). My kanata config looks messy AF as I tried to fix my issue with claude, but I can link it here: https://github.com/fgeck/dotfiles-stow/blob/main/kanata/.config/kanata/kanata.kbd My question is more: is there a general concept for such callbacks that I missed? Because then I could skip using SKHD and sending the weird combos. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can connect to Kanata via its TCP port and receive layer change notifications: https://github.com/jtroo/kanata/blob/main/docs/config.adoc#event-notifications Notifying on active modifiers doesn't exist in the TCP functionality though. No good ideas off the top of my head. |
Beta Was this translation helpful? Give feedback.
-
|
Using the TCP port and a very small TCP server in between kanata and sketchybar works quite well. For the modifier changes I used the |
Beta Was this translation helpful? Give feedback.


You can connect to Kanata via its TCP port and receive layer change notifications:
https://github.com/jtroo/kanata/blob/main/docs/config.adoc#event-notifications
Notifying on active modifiers doesn't exist in the TCP functionality though. No good ideas off the top of my head.