I’ve previously used the terminal to play music - mpg123 I think - and some other console / tty apps… There was one I used on both Linux and MacOS but can’t remember the name - the issue with running it on MacOs - I had to load (and keep reloading) a daemon called “jackd”… So I gave up and went back to Sayonara and stopped playing music on Mac…
Actually - I also scripted using ogg123 to play a folder of FLAC files…
╭─x@titanii ~/bin ‹main*›
╰─➤ cat fluflac 2 ↵
#!/usr/bin/env bash
# fireup ogg123 and play all songs in current dir on continuous loooooooooop
# ogg123 is usually in package vorbis-tools
BINA=/usr/bin/ogg123
echo "Playing all FLAC songs in $PWD...."
NUMFLAC=`ls -al *.flac|wc -l`
if [ $NUMFLAC -lt 1 ] ; then
echo NO FLAC HERE, HERE NO FLAC....
exit 1
fi
$BINA -v -r *.flac
I’ve also used moc / mocp and cmus…
And I just tried ffplay - didn’t realise ffmpeg had it’s own player… Quite neat… Hmmm - ffplay seems to stop about 2/3 into a FLAC file… so I might give that a miss… and it’s a bit annoying that it pops up album art outside of the terminal… Don’t need that…
I’m going to take a look at your app… but I don’t have Rust / Cargo installed ATM…
Ok - done and built it … looks nice… figured out how to search / play something from youtube and it worked (King Gizzard and the Lizard Wizard)… But I couldn’t figure out how to make it play a folder of music files… I keep ALL my music in
/Artist/YYYY-AlbumTitle-{FLAC/MP} structure… I don’t do playlists… I pretty much just listen to albums…
Giving moc/mocp another tryout…
Note : I read some of the doco for rs-pug - and it says local music library in :
~/.config/rs-pug/music-local - so I renamed that empty dir to .mzik-lokul, and made music-local as a symlink to my music collection on my NAS :
╭─x@titanii /mnt
╰─➤ cd ~/.config/rs-pug
╭─x@titanii ~/.config/rs-pug
╰─➤ ln -s /mnt/BARGEARSE/MPZ music-local
╭─x@titanii ~/.config/rs-pug
╰─➤ ls -al
total 16952
drwxrwxr-x 6 x x 4096 May 7 10:56 .
drwx------ 66 x x 4096 May 7 10:44 ..
-rw-rw-r-- 1 x x 332 May 7 10:57 config.toml
drwxrwxr-x 2 x x 4096 May 7 10:28 eqpresets
-rw-rw-r-- 1 x x 39 May 7 10:29 import_playlist.json
-rw-rw-r-- 1 x x 36 May 7 11:47 last_scanned_dirs.json
-rw-rw-r-- 1 x x 17310691 May 7 11:47 local_library.json
lrwxrwxrwx 1 x x 18 May 7 10:32 music-local -> /mnt/BARGEARSE/MPZ
drwxrwxr-x 2 x x 4096 May 7 10:28 .mzik-lokul
-rw-rw-r-- 1 x x 2 May 7 10:34 playlists.json
drwxrwxr-x 2 x x 4096 May 7 10:28 plugins
-rw-rw-r-- 1 x x 240 May 7 10:30 recently_played.json
drwxrwxr-x 2 x x 4096 May 7 10:28 themes
But when I hit tab 4 in the rs-pug UI it doesn’t find any local files…
I’m not about to start learning json to write playlists
- if that’s what it takes - I’ll give it a miss… Nice effort anyway 
ok - I came back to it - this time - it found a bunch of music files via symlink music-local in ~/.config/rs-pug/
But - there’s over 1 TB of music files in there 97% organised into “Artist/Album” folders… But it seems to be sorting my “library” by Artist, Song :
And I’ve NO IDEA why “High on Fire” (artist) comes before 1000Mods… or artist Ulver comes before Brian Jonestown Massacre…
Reckon I’ll keep using Sayonara - it’s minimal and it has the best damn TAG editor of any music player I’ve ever used…