• arc99@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    Stuff like ydotool, wtype exist and presumably there are others for this. Search on automation testing on Wayland and see.

    Since it is a niche I’m not surprised if it wasn’t a critical path for Wayland adoption but clearly there are solutions that work for certain compositors and I assume people working on a more robust solution. But allowing one piece of software to sniff or inject input, or capture its content is an obvious security flaw and Wayland devs are right to put it front and centre. If a desktop is to allow those things then it should be through a security model instead of in the absence of one.

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      I have ydotool, it is unable to do anything but put the mouse at 0,0

      I have tried every product, got all the way into python before I was able to even do relative.

      edit: just tried again because it’s been a while. The best I can do with ydotool is move the mouse cursor to -99999,-99999 to get it ot go to 0,0 then go to 100,100. It is, to this day, unable to to an absolute position, but is able to do relative.

      I just tried espanso too, doesn’t work in kate or konsole, or web browsers.

      I’m running in to the same stuff i’ve been running into for 3 years, none of the apps that are intended to do this actually do it in Wayland.

      I just want to be able to use mouse automation and test replacement, i don’t think that’s a big ask.