• megopie@beehaw.org
    link
    fedilink
    English
    arrow-up
    3
    ·
    10 hours ago

    Ah, I hadn’t even considered that Xdotool would be… well for X11. Thanks mentioning this, so I’ll know what the problem is next time I try to use my auto clicker script and it doesn’t work.

    • Lvxferre [he/him]@mander.xyz
      link
      fedilink
      arrow-up
      4
      ·
      9 hours ago

      Yup.

      On a lighter side, apparently ydotool has a smarter design; instead of sending events to the X server like xdotool does, it emulates an input device. This means you can start using it before migrating to Wayland, and in case the Linux community eventually deprecates Wayland for something else, it should still work.

      Now I just need a Wayland equivalent to grabc. A lot of my autoclicker scripts relies on it for dynamic behaviour, like “keep clicking $pixel1 until $pixel2 changes colour”.