Last active
April 22, 2020 12:26
-
-
Save danielrosehill/3f2532cfd20d9c3601a9fbb96af1beef to your computer and use it in GitHub Desktop.
Script to automatically resume Shtisel on Netflix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # A bash script for launching 'Shtisel' in Netflix | |
| # By: Daniel Rosehill / DanielRosehill.co.il | |
| # | |
| # Call arandr script to pipe output to HDMI (TV) | |
| /bin/bash /home/daniel/TV_only.sh | |
| # Unmuting volume and then setting it to 100% | |
| amixer sset Master unmute | |
| amixset sset Master 100% | |
| # Open 'Shtisel' series page in Netflix | |
| echo "Opening Shtisel page on Netlix" | |
| google-chrome https://www.netflix.com/title/81004164 | |
| sleep 5 | |
| # Click the resume button | |
| xdotool mousemove 115 531 | |
| xdotool click 1 | |
| # Wait five seconds and then make full screen | |
| sleep 5 | |
| xdotool mousemove 1857 991 | |
| sleep 3h | |
| sudo poweroff | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment