atx / wtype

xdotool type for wayland
MIT License
347 stars 13 forks source link

Compositor does not support the virtual keyboard protocol #34

Closed Sadi58 closed 2 years ago

Sadi58 commented 2 years ago

Having installed wtype under KDE neon from https://packages.debian.org/sid/amd64/wtype/download, I'm trying to use wtype as a replacement for xdotool and wmctrl in a couple of my startup scripts, which launch an app and then minimize or close its window (in the absence such feature in app settings). However, when I try to use a custom keyboard shortcut (e.g. meta+m) like wtype -M logo m -m logo m to minimize the current window, I get this message: Compositor does not support the virtual keyboard protocol I wonder what this means, and if/how I can overcome it.

Also, I couldn't figure out how to enter (Page) Down or (Page) Up. And also I think it might be better to add meta and super for the key defined currently as logo and win.

1ncend1ary commented 2 years ago

I second this. I'm on Arch GNOME Wayland, with wtype version 3.0 installed from AUR.

Running sudo wtype results in:

error: XDG_RUNTIME_DIR not set in the environment.
Wayland connection failed
atx commented 2 years ago

Right, this is because Gnome does not support the virtual-keyboard protocol, nor does it plan to do so apparently.

The Gnome issue tracking this is here, including some hints as to what the planned alternative is.

Sadi58 commented 2 years ago

@atx Sorry, I forgot to mention that I use KDE neon. So this should not be Gnome-related?

atx commented 2 years ago

@atx Sorry, I forgot to mention that I use KDE neon. So this should not be Gnome-related?

Ah, sorry, was focused too much on the second comment. Unfortunately the answer is the same here --- KWin does not yet support the virtual-keyboard protocol. Compared to Gnome, the KDE developers seem undecided whether they want to implement it or not.

Sadi58 commented 2 years ago

@atx Thanks! I hope they implement it.