cross-posted from: https://feditown.com/post/3071906

Edit: To clarify, this is not my personal blog. It’s just intended to raise awareness and spread it around here as well. I just don’t believe in editorializing titles

    • esc@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      There is wdotool, it’s not complete re-implementation yet, but it works.

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

      same, these are surfaced in python, but it’s barely usable

      device = uinput.Device([
      uinput.BTN_LEFT,
      uinput.BTN_RIGHT,
      uinput.REL_X,
      uinput.REL_Y,
      ])

      device.emit(uinput.REL_X, 0)
      device.emit(uinput.REL_Y, 0)
      device.emit(uinput.BTN_LEFT, 1)
      device.emit(uinput.REL_X, -100)
      device.emit(uinput.REL_Y, -100)

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        Yeah I wrote something using a lower level interface. Like at the usb layer or some shit, I forget. I gave that up and went back to X.