#!/bin/bash # Launch commands to control a web page # $@ contains the website that was opened # The espn example moves the mouse and clicks to make the player active # Then the f key is pressed to make the video fullscreen if [[ $@ == *"espn.com"* ]]; then sleep 7 xdotool mousemove 722 531 click 1 click 1 xdotool key f fi