Retrieve the X-Windows window ID of the running Firefox window(s)
xdotool search --onlyvisible --name firefoxPerform a mouse `<RightClick>`
Get the ID of the currently active window
Focus on the window with a specific ID
xdotool windowfocus --sync 12345Type a message, with a 500ms delay for each letter
xdotool type --delay 500 "Hello world"