center cursor
#2873
Replies: 1 comment 4 replies
-
|
We don't maintain |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Moving the cursor in the center of the screen programmatically fails
I tried using
ydotool mousemove -a $((width / 2)) $((height / 2)).Using
to get the current dimension of the current active screen.
The current screen has no DPI scale and position is (0,0).
widthandheightin the script are correct but the cursor is not placed in the center of the screen, instead it clings in the bottom right corner (probably trying to go out of bounds).Not sure where the issue comes from, and what would be a better way to do that if there is one?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions