ytmenu
A simple script to play music from youtube with mpd and dmenu. It can search for songs, auto-generated mixes and live streams, then play them through mpd. It also keeps a history of the songs you played.
Requirements
Usage
- Clone the repo
- Get a YouTube Data API key here (follow until step 3)
- Paste your API key into the
ytmenu
script (API_KEY = '{YOUR_API_KEY_HERE}'
) - Make the script executable
chmod +x ./ytmenu
- (Optional) Add the script top your path
- (Optional) Setup a keyboard shortcut with sxhkd or your window manager
Known issues
- Sometimes livestreams can't be played from history, even if they're still streaming. Perhaps they change their IDs?