ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.52k stars 83 forks source link

Implement support for keyboard layouts. #177

Open nicolas-graves opened 2 years ago

nicolas-graves commented 2 years ago

From the README:

Now it's possible to implement support for different keyboard layouts in type

How can I do that ? I can't find the information.

Also I would like to raise the possibility that all common keyboards are defined from keycodes in the package xkeyboard-config "symbols" directory. Maybe if we can parse those files, the support for all keyboards might be easy to implement.

nicolas-graves commented 2 years ago

More precisely, the match between linux keycodes and xkb keycodes can be done from /usr/share/X11/xkb/keycodes/evdev and then the match with each keyboard from files in the symbols directory. Source: https://renenyffenegger.ch/notes/Linux/fhs/usr/share/X11/xkb/keycodes/evdev