Tutorial: Getting started with ydotool
to automate key presses (or mouse movements) in Linux
ydotool works well in both the X11 and Wayland window managers to press any keys, including Windows + D, for example