wtype
wtype copied to clipboard
Use input-method if available
This removes the need for generating a custom keymap and simulating input events. input-method can send UTF8 text directly.
Quick demo: https://git.sr.ht/~emersion/wl-ime-type
If I'm not mistaken, it looks like KDE uses the input-method protocol as well for emulating a virtual keyboard. Assuming that's the case, if wtype does add support for it, it would benefit programs like tessen which aim to support auto-typing of data on wlroots based compositors and on KDE.
I was trying to find out why wtype is not working under KDE and found my way here. So if I'm understanding correctly, wtype currently supports neither KDE nor Gnome because neither supports virtual-keyboard-unstable-v1
? That's rather disappointing TBH.
I'm not trying to be a dick about it, but frankly wtype is not going to be very useful if the protocol it relies on is not supported by the two most popular DEs out there. I strongly agree with the opinion here that this should at least be made clear in README.
This issue tracker presents an overview of the state of autotyping protocols and their support in various desktop environments and window managers on Wayland.
+1 for KDE support.
It is worth mentioning that the example uses zwp-input-method-v2, which isn't actually supported by KWin. KWin only supports zwp-input-method-v1.
for KDE this should work https://github.com/jinliu/kdotool
for KDE this should work https://github.com/jinliu/kdotool
They state that they will not support keyboard commands. The goal is to control windows through Kwin API