xdotool

    Simulate keyboard and mouse events (macro)

    ## Open firefox website

    #!/bin/bash
    WID=`xdotool search --title "Mozilla Firefox" | head -1`
    xdotool windowfocus $WID
    xdotool key ctrl+l
    xdotool type "www.tux-planet.fr"
    xdotool key "Return"
    

    source