This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc https://www.semicomplete.com/projects/xdotool/.
Platform | Install Method |
---|---|
Debian and Ubuntu | apt-get install xdotool |
FreeBSD | pkg install xdotool |
Fedora | dnf install xdotool |
OSX | brew install xdotool |
OpenSUSE | zypper install xdotool |