alias tube='yt-dlp "$(xclip -o -selection clipboard)" -o - | mpv - --force-seekable=yes'
using yewtube to search, pressing x 1 selects the first option and copys it to clipboard, here im using xclip so when I ad this to my .bashrc when i run the alias tube it uses the xclip url as an argument passed into the script
I was having trouble with the old version of yt-dl beingused to open links with mpv and I tried symlinking the new one over the old one but that fix didn't end up working for me. Its been bugging me for a while because other players like ytfzf also depend on the old version that were broken because of the old package
No comments:
Post a Comment