-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple defcfg linux-dev #62
Comments
That's a cool use case, thanks for sharing it! 👍 |
You've probably found this already, but for reference, the input reading is done in: Currently, the event loop does blocking calls to Edit: Browsing through evsieve's source, it uses C style code using epoll and raw file descriptors. Quite efficient, but a lot more complicated than what kanata's doing. |
I've added a kanata-evsieve crate exposing the evsieve functionality as a library. Not sure yet if using it is a viable strategy, but seems like it should work out okay. |
@br-lemes please test the code in the new PR at your leisure. I haven't actually tested it on multiple keyboards myself since I don't have a convenient way to do so, but I think it should work. Config change:
|
Yes, it works. I'm typing using the PR version right now! It's great! |
I use two of these 6x4 keypad as a split keyboard. As they are two independent keyboards, normally I can't setup layers which works across the "halves" (a key in one keypad which activates a layer in the other one). To solve this I currently use evsieve to fake one device out of these two. This way:
# evsieve --input /dev/input/by-id/usb-BlackC_Sayobot.cn_L-event-kbd grab --input /dev/input/by-id/usb-BlackC_Sayobot.cn_R-event-kbd grab --output create-link=/dev/input/by-id/sayo
It would be nice if kanata could use multiple devices this way out of the box.
The text was updated successfully, but these errors were encountered: