Created
July 10, 2017 16:35
-
-
Save gmelodie/21b953645453fdb72b169bc92b464d85 to your computer and use it in GitHub Desktop.
Script to play song after waiting some time, hence wakeup.sh
This file contains 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 | |
export DISPLAY=:0.0 | |
export SONGPATH=(~/Music/Aerosmith\ -\ Complete\ Discography/"01. Mama Kin.mp3") | |
read -p "How many hours should I wait? " hours | |
read -p "How many minutes should I wait? " minutes | |
time=$hours*60+$minutes | |
sleep $time | |
vlc "$SONGPATH" 2>&1 > /dev/null & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
used this at the end of the semester when I needed to wake up but my phone was broken (didn't rely enough on my internet to use some web-based clock app)