ydotool seems similar to xdotool except that it supports Wayland. Maybe that's something to look at.
Yes, you are correct. ydotool is indeed similar to xdotool, but it has been developed to support the Wayland display server protocol, whereas xdotool is primarily designed for the X Window System.
Wayland is a newer display server protocol that aims to provide a more secure and efficient alternative to the X Window System. It is increasingly being adopted by modern Linux desktop environments. As a result, tools and applications that were originally designed for X11, such as xdotool, may not work seamlessly with Wayland.
To address this limitation, ydotool was developed as a compatible alternative that specifically targets Wayland. It provides similar functionality to xdotool, allowing users to automate input events, simulate keyboard and mouse actions, and manipulate windows.
If you are using a Wayland-based desktop environment and need to automate input or window manipulation, ydotool can be a useful tool to explore. It allows you to script and automate various tasks, making it handy for both personal use and scripting automation workflows.
Keep in mind that the availability and compatibility of ydotool may depend on your specific Linux distribution and the version of Wayland being used. It's recommended to consult the official documentation or resources specific to your distribution to ensure the compatibility and proper installation of ydotool for your Wayland setup.