Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This looks like a potential great tool but it needs a better summary of what it can do and how it works. I can't quite grasp it from the readme.

I use a mix of setxkbmap to remap the control key and AutoKey but each has its issues. Can this replace those?



On Linux, it completely captures your physical keyboard (meaning it doesn't work for other applications anymore) and creates a virtual keyboard using the uinput kernel module [1]. The configuration is for how the keys on the physical keyboard maps to the virtual keyboard.

It should be able to do whatever you suggest. But it can be a lot of configuration. I use 3 different layouts in 2 languages and that will be too much to configure manually. Instead, I just use 2 layers that are mostly just pass-through (they just pass the keystrokes to the native xkb layout). Layer1 is entirely pass-through except for a single tap-dance key to switch to layer 2. Layer2 has some additional features like home-row-mods that are not possible with plain xkb. The keyboard layouts are managed by xkb. Thus I'm able to use the features of both xkb and kanata.

[1] https://www.kernel.org/doc/html/v4.12/input/uinput.html


Short answer: remapping single keys like Control is trivial with Kanata or without. I have no problems with this.

It is likely that AHK has some features not in Kanata, so you would have to explain what you do.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: