sxiii icon

Use Youtube Video as Alarm (Linux)

sxiii | PRO | 01/16/21 12:48:20 PM UTC (Edited) | 0 ⭐ | 567 👁️ | Never ⏰ | []
Bash |

810 B

|

None

|

0 👍

/

0 👎

# 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

Comments