A POSIX script that helps you find Youtube videos (without API) and opens/downloads them using mpv/youtube-dl
There are only 2 required dependencies, however the rest require some configuration before you can replace them.
yt-dlp
(for downloading)dmenu
(only if using the -D option)ueberzug
(if using thumbnails (-t) on x11)- If on wayland, or you do not want
ueberzug
, see the alternatives below. - To use an alternative include
--thumb-viewer=<alternative>
in the command when running ytfzf
- If on wayland, or you do not want
Program | Wayland Support |
---|---|
chafa |
✅ |
catimg |
✅ |
display (from imagemagick) |
❌ |
kitty (only when using kitty terminal) |
✅ |
w3m (buggy) |
❌ |
imv |
✅ |
- Install the dependancies listed above
- Run the following commands
git clone https://github.com/pystardust/ytfzf
cd ytfzf
sudo make install doc
-
If you wish to not install documentation (highly unrecommended) run
sudo make install
instead. -
ytfzf may be in some repositories, such as the AUR, however the above way is the recommended way to install.
- Subscriptions
- Thumbnails
- Watch history
- Downloading
- Queueing multiple videos
Search with thumbnails
ytfzf -t <search>
Use
dmenu
as the menu instead offzf
ytfzf -D <search>
Print the link of the selected video instead of playing it
ytfzf -L <search>
Search Odysee instead of youtube
ytfzf -cO <search>
- More sites
- Playlists
- Subscriptions
- Thumbnails
- dwm with swallow patch: Images don't render with ueberzug when looped (ie, option
-l
) - if thumbnails are not working
.Xauthority
might be causing it. Try deleting it and relogging into your computer.