Last week I got tired of generating #mpv playlists using complicated find commands. I wrote a shell script to generate a plain text library of my music, search it using #grep and extended regular expressions, and pipe results to mpv with switches to control repeat and shuffle.
I call it #rockout. You’re welcome to use it too.
I wrote and tested it on #OpenBSD, but it should work on other BSDs, GNU/Linux, and GNU/systemd.
Sorry I don’t have a Codeberg account so I comment here:
I think Line 21 of rockout is missing a “~/“ as it is pointing at current path and if user run this when they are not in $HOME, the will end up having these folders created left and right.`mkdir -p .local/rockout`
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.