xdotool

xdotool#

Simulate keyboard / mouse and manipulate X11 windows.

$ xdotool type "hello"
$ xdotool key ctrl+alt+t
$ xdotool search --name Firefox windowactivate
$ xdotool getmouselocation