jtroo
jtroo
> Does this mean it may require using some other mechanism or OS APIs that apps like Spotify or Chromium use to hook into the media keys on Windows? My...
Thanks for doing the research!
You can run Kanata with a TCP server and then connect to get the current layer. Example: https://github.com/jtroo/kanata/discussions/997#discussioncomment-9271115
It is the intended use case of the TCP server, not a workaround. How would you expect a command like `kanata --print` to work behind the scenes?
Run kanata with the `-p` flag. Choose whatever port you like that is available, in this case I chose 12345. ``` kanata -c sample.kbd -p 127.0.0.1:12345 ``` Example bash command...
There are no filesystem writes, the path here is a "dummy" kernel path used for opening sockets. Like how /dev/input refers to input devices like keyboards. "Uses the layer listed...
> is there even a simple guide of the json stuff I can send and receive for the tcp server There is no centralized doc. The best available today is...
Hm seems like _this_ particular problem might be solved by the changes in this branch: https://github.com/jtroo/kanata/tree/chord-experimentation But then in some manual testing a (new? or maybe it already existed) problem...
Still not having dug into it deeply, I suppose it could worked around with something like: ``` (switch ((and (key-history q 1) (key-timing 1 lt 200))) q break () (tap-hold...
Hopefully adjacently fixed by https://github.com/jtroo/kanata/pull/916