-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Doesn't work with non-QWERTY layouts (e.g. Dvorak) #43
Comments
I'm looking at the codebase to familiarize myself with it. Since it seems that currently, we assume that the user wants to type in QWERTY, there really needs to be a way to consider if the user is using an alternative layout. For example, one can modify As I see it, there are several options. We can create separate tools for each instance, e.g. Sway-Type, Console-Type, etc. This would probably be easiest; we can confine the scope of each tool by assuming the user is in the expected environment. Or, we can modify the existing Thoughts? |
Thanks for digging into this. I didn't have this issue while I'm using Norman Layout because my keyboard can configure as different layouts it-self, no need for OS or DE to map these keys. So change to a hardware based configuration could be another solution. |
I am pretty sure this is related even though I am on a pretty common qwerty layout. |
Another imperfect option is how Hawck is handling this. In short, while it's also not autodetecting the layout, it's parsing console layouts and can be configured to use any of them to translate keys for input. Of course console keymaps are not exactly the same as XKB ones, but this may be simpler/more portable than trying to use XKB ? |
I share here a temporary (and not consistant) fix for visitor that are looking to use ydotool in an azerty envoronnement
(from https://linuxtrack.net/viewtopic.php?id=1380) |
Is it possible to specify the wanted keyboard layout as parameter to ydotool? |
Not currently. I’ve just been patching my layout in. |
How did you figure out how do patch the layout? I see the ascii to keycode function in tool_type.c but can't seem to figure out how to specify the layout. At first I thought the "// 00 - 0f" etc were scancodes for a typical US layout, but that doesn't seem to be the case? |
|
thank you! very helpful |
I believe I'm running into this issue as well although maybe a variation of it. I type in colemak, I have my console set to colemak and also have my wayland setup like this: (hyprland)
If I run
I suspect that somehow when running from the binding, it converts it to colemak and then converts the colemak keycode to yet a different querty keycode? |
This project is dead. |
No it isn't. Since this is an open source project, if you cannot provide help, please just TG |
This is your first ever comment on this 5 years old issue, this is your first time commenting any issue in 10 months, and the last commit is 5 months old. 🤷
That changes nothing.
I'm helping by telling people not to expect this issue to be fixed anytime soon.
What do you mean ? |
I have already replied to multiple issues pointing to the same problem and explained multiple time why and how this issue happens and how it can't and shouldn't be fixed here. Once again, ydotool emulates a physical keyboard that you need to set its software layout manually just like you set your layout to your physical keyboard. If you don't know how software layout works, it's not our job to lecture you with necessary lessons. |
Hi, if I type in
ydotool type "This is a test"
I get this instead:Ydco co a y.oyv
which signifies thatydotool
is typing in QWERTY, not Dvorak.For reference, I'm using
sway
as my WM and the following lines of config:The text was updated successfully, but these errors were encountered: