-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Support paste on wayland #1393
base: main
Are you sure you want to change the base?
Support paste on wayland #1393
Conversation
This uses wtype to support paste on wayland: https://github.com/atx/wtype Currently very WIP, need to compile and try it out. Haven't done much C++ so relying on the existing code for `xdotool` here just altering the command used.
Does wtype generally work? How does it behave on xwayland windows? If it works on all windows we could simply query the platform and use the correct tool. |
I'm not sure, my hope was to create this draft then give it a test but life and work has got in the way. My rough understanding is that it's an equivalent to I'll try and get some time to try this out. If there a guide for building and trying out a change locally? I've not working C++ before. |
dont bother i'll do that. i just have to know the behavior. if their effect is mutually exclusive we could probably simply call both (xdotool and wtype). |
Unfortunately, wtype needs the "virtual-keyboard-v1" protocol, which is not implemented in some popular display servers like mutter (for gnome). Perhaps ydotool would be more universal? |
Iirc ydootool need a server running as root |
Hm, i think it can run without it. For example the debian version (admittedly rather outdated) can run without the daemon, generating the warning
but running nonetheless. EDIT: ok, the daemon is mandatory for ydotool > 1.0, but it can run in userspace |
e938990
to
97327a8
Compare
950bd01
to
f724001
Compare
4a97caf
to
9410b52
Compare
72fd74e
to
b63ed1c
Compare
This uses wtype to support paste on wayland:
https://github.com/atx/wtype
Currently very WIP, need to compile and try it out.
Haven't done much C++ so relying on the existing code for
xdotool
here just altering the command used.