summaryrefslogtreecommitdiffstats
path: root/abs/extra/web-on-linhes/wol-custom-cmds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/web-on-linhes/wol-custom-cmds.sh')
-rwxr-xr-xabs/extra/web-on-linhes/wol-custom-cmds.sh13
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