this post was submitted on 11 Jul 2026
17 points (94.7% liked)

Linux

68243 readers
431 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

Hi,

using Cachyos kde I've been making a python script that will move the mouse to a position -> click -> move mouse back to the original position. I can get this working with x11, but it fails with wayland.

Do you know any way to programatically move the mouse and click that works with wayland?

Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] ISOmorph@feddit.org 1 points 3 months ago (1 children)

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

[–] basic_user@lemmy.world 1 points 3 months ago (1 children)

I did think about moving to an abritary base position and then move from there. The edge of the screen wont work as it will move the view, but any other position could work. I just dont like that I have to make a workaround for basic functionality. I'll try input-remapper and see if it works better. If not I might go back and try this.

[–] basic_user@lemmy.world 1 points 3 months ago

This was a brain fart as the bug specifically prevents absolutte movements so I cannot move the mouse to any specified location. All I can do is move the mouse so much in one direction relatively that it most definitely is at the edge/corner of the screen.

I skipped Input-remapper as the setup for it turned out to be pretty complex and also I need to be able to check current mouse position which it can't.

I have currrently given up on the project.