Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ydotool mousemove --absolute moves Mouse to the top of the Screen #250

Open
JakobDev opened this issue Jul 27, 2024 · 8 comments
Open

ydotool mousemove --absolute moves Mouse to the top of the Screen #250

JakobDev opened this issue Jul 27, 2024 · 8 comments

Comments

@JakobDev
Copy link

ydotool mousemove --absolute just moves the Mouse to the upper left Corner of the Screen, no matter which coordinates are entered.

@mashrit
Copy link

mashrit commented Aug 11, 2024

any progress on this matter?
i also have this issue, so i need to move the mouse to the top left corner of the screen and then use the relative function to move it to the desired location
it is really annoying

@jonas73x
Copy link

did you see this comment in the help?
"You need to disable mouse speed acceleration for correct absolute movement."
does it make a difference?

@mashrit
Copy link

mashrit commented Aug 18, 2024

yes pointer acceleration is turned off in the settings

@M4rtineski
Copy link

M4rtineski commented Dec 20, 2024

Disabling pointer acceleration helped. Thanks jonas! I've read that I needed to do that but it slipped my mind still.

image

Edit: Oh, but it seems to be inconsistent at it though. Sometimes it will go to specified location and sometimes it will go to the corner...

Edit2: I think I've figured this out? When I try multiple relative mousemove commands at once to achieve the same effect as when using 'absolute' argument I'm experiencing a very similar issue where the commands work randomly. When trying them one by one repeatedly using separate shortcuts for each command they worked flawlessly. So depending on how this 'absolute' argument is handled in the backend a small pause between the actions may do the trick.

Edit3: Something like ydotool mousemove -x -3000 -y -3000 && sleep 0.05 && ydotool mousemove -x 1360 -y 425 doesn't cause me problems.

@cen1
Copy link

cen1 commented Jan 3, 2025

I don't have an option to turn off mouse accel in Debian KDE, I only get "Flat" and "Adaptive" in Mouse settings.

A workaround which works is to set absolute to 0,0 to move cursor to 0,0 and then use relative to achieve the desired absolute position. Works for my use case.

@davidlevner
Copy link

I have the same problem. I am using KDE with Fedora 41. I turned off mouse acceleration but it didn't help. I am using the same workaround as mashrit.

@mashrit
Copy link

mashrit commented Jan 21, 2025

@davidlevner
I was so annoyed by this issue, I looked for an alternative and found this, you can use touch for absolute movement and mouse for relative

@Mte90
Copy link

Mte90 commented Jan 24, 2025

Same issue but disabling pointer accelration didn't fixed.
In my case I have a multi monitor system and doesn't work very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants