this post was submitted on 11 Jul 2026
12 points (100.0% liked)
Linux
66826 readers
39 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
ydotool does specifically do what you need. Have a look at their source. Or use it in your python script.
I've been testing ydotool, but I end up running into this bug
https://github.com/ReimuNotMoe/ydotool/issues/250
Which I can't seem to get around. The workaround to move the mouse to 0,0 and then making non-absolute moves clashes with the game because when the mouse is at the edge of the screen it scrolls the view which is really annoying.
Couldn't you move the mouse to 1920,1080 or whatever your resolution is for the same amount of time to correct the movement? Since you can move the mouse in millisecond speeds it should barely be noticeable