Move mouse to Screen

Ref: https://www.reddit.com/r/kde/comments/1ib90z3/movev_mouse_by_cli_in_wayland/
Ref: https://www.reddit.com/r/wayland/comments/1i8t5au/move_mouse_between_monitors/

Right now it is quite impossible in a multi monitor environment have a CLI command to move the mouse cursor in a monitor without issues.
Kwin has a lot of stuff to move windows between monitors but not the mouse itself.

What’s the use case for this, out of curiosity?

Yeah sure.
I have a footswitch and 3 monitors, so I move the mouse between those monitor in this way the window that I have fullscreen there get the focus with GitHub - Mte90/pydal: Remap your specific keyboard to execute custom scripts!.

I did a tiny C++ tool to move the cursor with a virtual pointer few days ago it is not perfect as positioning but right now works. Before the mandatory switch to wayland I was using xdotool with Xorg.

I saw that Wayland with the relative pointer API doesn’t allow a absolute positioning and that not exist something like that. So when you use that API position the mouse in the monitor where you are and not across the monitors.

Also there is this issue on Wayland 483503 – Window rules: Force app to specific screen don't work with Wayland