diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-01-09 15:48:34 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-01-09 15:48:34 (GMT) |
commit | d0045640af11043af151ae0768002c5382259537 (patch) | |
tree | 957cbd656df81a107d98f8ba80651f6589964e2c /abs/extra/web-on-linhes/wol-custom-cmds.sh | |
parent | 8d3d5fc17ddda68793375eb9910213eee8f1bf67 (diff) | |
download | linhes_pkgbuild-d0045640af11043af151ae0768002c5382259537.zip linhes_pkgbuild-d0045640af11043af151ae0768002c5382259537.tar.gz linhes_pkgbuild-d0045640af11043af151ae0768002c5382259537.tar.bz2 |
web-on-linhes: add espn.com
add /home/mythtv/.wol-custom-cmds.sh to run cmds to control a web page
Diffstat (limited to 'abs/extra/web-on-linhes/wol-custom-cmds.sh')
-rwxr-xr-x | abs/extra/web-on-linhes/wol-custom-cmds.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/abs/extra/web-on-linhes/wol-custom-cmds.sh b/abs/extra/web-on-linhes/wol-custom-cmds.sh new file mode 100755 index 0000000..2386378 --- /dev/null +++ b/abs/extra/web-on-linhes/wol-custom-cmds.sh @@ -0,0 +1,13 @@ +#!/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 |