-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I'm using Gnome on Wayland with ydotool
.
There is a 'keyboard layout' field in the advanced settings available under Wayland.
When set to a layout name that corresponds to the language of the speaker (i.e. 'en' for English speech), correct output is inserted into target application.
When left empty, no letter characters are inserted into focused application.
When set to incorrect layout name (i.e. 'ru' but speaking English), the output is as if the user was typing with incorrect keyboard layout. For example: saying 'testing' produces 'Lbcnby' output, which, when typed with Cyrillic layout, would be 'Дистин' ('Distin'), which is not a real word, but is how the algorithm interprets what was spoken when an incorrect language is assumed.
Is that possible to paste into the 'keyboard layout' field something that would allow both keyboard layouts so that when the user speaks Russian, cyrillic 'ru' layout is used and when the user speaks English, latin 'en' layout is used?
For example, something like localectl status | grep 'VC Keymap' | awk '{print $NF}'
on my Gnome system tells the current layout. Obviously, it is not intended that something like this shall be pasted into the 'keyboard layout' field.
Is there a way to do what I want? Am I missing something?
As a sidenote, it seems that clipboard on Wayland doesn't work either. Whatever language I speak, nothing is copied there.
But for that I should file a separate issue, I suppose.
With X11, both clipboard and active window features work just fine and both the language and layout are automatically chosen correctly. Guess I will use that for now.
Thank you for your effort with this app, otherwise it seems great.