Install xdotool by entering the following commands in the terminal:
sudo apt update sudo apt install xdotool
Description:
simulate (generate) X11 keyboard/mouse input events
xdotool lets you programmatically (or manually) simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.
Homepage: https://www.semicomplete.com/blog/projects/xdotool/
Version: 1:3.20160805.1-3
Section: universe/x11