this post was submitted on 01 Jun 2026
49 points (100.0% liked)

Linux

13889 readers
373 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] jaybone@lemmy.zip 1 points 5 days ago (2 children)

xdotool and kin didn’t work on Wayland for me.

[–] rumba@lemmy.zip 2 points 5 days ago* (last edited 5 days ago) (1 children)

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 1 points 5 days 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.

[–] esc@piefed.social 1 points 5 days ago

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