An extremely lightweight bash script to browse YouTube.
NOTE: This is not another yt-dlp wrapper. yt-dlp is only used for fetching streaming links and playlist data.
It has its own bash-written YouTube scraper that uses curl to fetch results, making it blazingly fast.
- Player Support: MPV and VLC
- Modes: Use YouTube or YT-Music mode
- Browser Cookies Support: Personalized search results and playlist items
- YouTube Scraper: A YouTube scraper written in bash using curl and jq to fetch results. It's super fast.
- Cache Management with LRU: Caches the thumbnails and smartly manages them
- Store History: Store your search history and dynamically update it based on usage
- Playlist Mode: Generate a playlist and play the next item automatically
- Playlist Window: Rofi window to show the playlist. Select any item and play it
- Settings Window: Configure video quality, codec, playlist limit, etc.
- Desktop Notifications: Beautiful desktop notifications with little animations
- Clone repo
git clone https://github.com/Harsh-bin/rofi-tube.git - Get YouTube cookies
- TIP! Don't do these steps in your main YouTube account. It's best to use a guest account or a browser without an account logged in.
- Install any extension that downloads browser cookies locally, e.g., Get cookies.txt LOCALLY
- Open YouTube in your browser. Play for a while to build your desired feed.
- When you are happy with the feed, click the extension and download the cookies.txt.
- Rename it to
youtube-cookies.txtand place it in the script folder.
- Make the script executable
chmod +x ./rofi-tube.sh - Now run the script
./rofi-tube.sh
All set now, enjoy your Rofi Tube!