Handy icon indicating copy to clipboard operation
Handy copied to clipboard

Use dotool to send paste action if on Wayland

Open alabhyajindal opened this issue 1 month ago • 3 comments

Discussed in #363

Adds a conditional branch in the two paste actions, using dotool to send the paste action if the user is on Wayland. Tested on my machine, KDE Plasma 6.5.2, and it works. Although I need to click back on the text input after triggering Handy since it steals the focus.

This change assumes that dotool is installed on the user's system. This needs to be communicated somehow, I believe this is the first external dependency on Handy, since everything else has been packaged nicely.

alabhyajindal avatar Nov 21 '25 16:11 alabhyajindal

It would be great to have support for wtype (https://github.com/atx/wtype) too. Ubuntu/PopOS has a package for it available. dotool isn't available directly. I think wtype should be preferred over dotool. wtype is used in this draft PR: #265

lhotari avatar Nov 22 '25 11:11 lhotari

I extracted wtype parts from #265 to #372.

lhotari avatar Nov 22 '25 21:11 lhotari

I extracted some parts from this PR to add support for both wtype and dotool in #376

lhotari avatar Nov 23 '25 22:11 lhotari