Script for Youtube-dl

Hi all!

Linux newbie here got a question for the experts here and hopefully someone can help me.

I’m looking for a script or some way to grab Youtube links from my clipboard in Pop Os 20.04 and automatically send it to Youtube-dl to start downloading it to a specific directory. Is this possible? Thanks all

AFAIK there’re at least 2 clipboards on Linux, meaning data copied or cut in a KDE app is strictly limited to the KDE space, and 1 space where the data is available across the system. I think there’s a 3rd, but I’m not sure.

In any case, if you can keep a light eye on the clipboard (there’s a command which reads the clipboard contents) that knows every single YT-compatible URL (will need to open the yt-dl source code), then you could have that eye launch yt-dl with the URL.