What does HackerNews think of ydotool?

Generic command-line automation tool (no X!)

Language: C

Have you tried ydotool as a replacement for xdotool? It also works on X, as it uses uinput.

https://github.com/ReimuNotMoe/ydotool

yeah. this is as far as you get: https://github.com/ReimuNotMoe/ydotool.

begs the question. how come ahk can run on windows(tm) but not wayland? my understanding is that win10/11 are pretty secure.

There is some rough functionality for operations with wlroots via wlrctl https://git.sr.ht/~brocellous/wlrctl and more generically (via uinput) ydotool https://github.com/ReimuNotMoe/ydotool
I get your confusion, there is one screenshot API that abstract the compositor but it lies in xdg-desktop: https://github.com/flatpak/xdg-desktop-portal/blob/master/da...

The portal for xdg-desktop takes care of the implementation and is the responsibility of the compositor.

It's already used by Flameshot for example.

There is several xdottool equivalent as well: https://github.com/atx/wtype https://github.com/ReimuNotMoe/ydotool

This one is specific to wlroot based compositor: https://git.sr.ht/~brocellous/wlrctl

There are few replacements:

* https://github.com/bugaevc/wl-clipboard

* https://github.com/ReimuNotMoe/ydotool

OBS / ffmpeg and etc. should get integrated with Pipewire I think for screen capture and the like? But I'm not sure how far that progressed.

Check ydotool for an xdotool replacement: https://github.com/ReimuNotMoe/ydotool

The lack of a common screenshot protocol isn't related to security. The desktops just haven't been able to agree on a common protocol (yet?)

Yup. wmctrl too; sometimes one is more friendly for the specific thing you need done, sometimes it's the other way.

Passersby, warning, both are Xorg-only. For wayland, see https://github.com/ReimuNotMoe/ydotool but the naming is confusing, as it doesn't work exactly at the same level: ydotool is about keystrokes, not window management.