YouTube link (from clipboard) to mpv
2019-12-02
This script checks the clipboard every 5 seconds and if a YouTube URL is detected, it is opened with mpv
.
#!/bin/bash
LAST_URL=""
while [
do
CLIP=
if ; then
if [ ; then
#same link
else
LAST_URL=
fi
else
#no yt link
fi
done