Tutorial: Getting started with `ydotool` to automate key presses (or mouse movements) in Linux

1 · Gabriel Staples · June 17, 2023, midnight
ydotool works well in both the X11 and Wayland window managers to press any keys, including Windows + D, for example Here is a full tutorial. Note: ydotool is a universal replacement of xdotool, which is a tool to move the mouse and do keypresses in the X11 window manager. The ydotool program was created because xdotool doesn’t work in Wayland, which is the new window manager that Ubuntu is slowly moving towards, even though Wayland currently is still very buggy should be turned off in most case...