Hacker News new | ask | show | jobs
by 43224gg252 3254 days ago
I'm definitely going to try this, but I've become fed up with most music players and decided to code my own wrapper around MPV.

I used mpd and cmus for years but the main problem I had with them is that when I changed the directory structure of my music files it would corrupt my playlists. There are a lot of different work arounds but eventually I decided that to build a playlist I wanted to copy the file into a playlist directory instead of just reference the file location in a text file.

Right now I use Ranger (a CLI file manager) as the "front end" to mpv. I run mpv on a unix socket so it can be controlled remotely and I can request things like artist, title, etc.. and use that info in desktop notifications and widgets (if I want). Most of the time I never even look at my music player so this works out really well, and I already have mpv installed for video so I'm finding another way to utilize a program I already have installed instead of using another one.

1 comments

I wrote a Rust command-line wrapper around libmpv also: https://github.com/sevagh/surge

Uses `youtube-dl` backend.