Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # You can use any sophisticated youtube video (or audio) of your choice as a wake up alarm or notification.
- # Requirements: Linux/CLI and MPV player installed
- # To install MPV:
- * ubuntu/debian - `sudo apt install mpv`
- * fedora/centos - `sudo dnf install mpv`
- * arch/manjaro - `sudo pacman -S mpv`
- * alpine - `apk add mpv`
- # Now, if you have MPV, just a short single line:
- sleep 1h 30m && mpv https://www.youtube.com/watch?v=bpOSxM0rNPM
- # Replace the video URL with any of your choice.
- # Video will pop up and play.
- # Sleep can take hours (h), minutes (m), seconds (just write seconds without an additional argument)
- # You can as well replace sleep with at, if you want to specify exact time:
- mpv https://www.youtube.com/watch?v=bpOSxM0rNPM | at 9:00 AM
- # But in this case you'll also need the cron daemon to work
Add Comment
Please, Sign In to add comment