Skip to content

Instantly share code, notes, and snippets.

@danielrosehill
Last active April 22, 2020 12:26
Show Gist options
  • Select an option

  • Save danielrosehill/3f2532cfd20d9c3601a9fbb96af1beef to your computer and use it in GitHub Desktop.

Select an option

Save danielrosehill/3f2532cfd20d9c3601a9fbb96af1beef to your computer and use it in GitHub Desktop.
Script to automatically resume Shtisel on Netflix
#!/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