During last week I had big breakthrough in playd.sh (currently
multimedia/playd, I requested to rename it to playd.sh)
I added few features, fixed gazillion bugs, and resolved issues related to file names with special characters. This work inspired me to fix one of my very old sh scripts for fvwm - musicmenu.sh
After spending many hours, yesterday at about 2-3am, I finished rewriting it.
Here are screenshots of fvwm music menu generated by musicmenu.sh script:
in screenshots 1 you can see, that Down-Low albun It Ain't over is using backquote which is special character not only in sh but in fvwm as well. To avoid problems, I used quotes (single where possible, double otherwise) and encoded some characters with sed, later, when i needed real file path, I decoded arg1, again with sed
I think that this script is pretty nice sh-fvwm hack
Previously I used static menus for radio stations, but since few days ago playd can recognise different kinds of playlists, now I can use musicmenu.sh to also generate radio menu same way I make music menu
To add new radio station, I just need to download playlist, and place it in /files/radio folder (or subfolders)
To achieve portability and flexibility musicmenu.sh doesn't call music player directly. Instead it calls Fvwm functions,
PlayerPlay and
PlayerAppend and pass them one argument (file or directory)
fvwm config:
http://github.com/killasmurf86/ks86-dotfiles/tree/master/.fvwm/
musicmenu.sh:
http://github.com/killasmurf86/ks86-dotfiles/blob/master/.fvwm/bin/musicmenu.sh
if someone is interested in more details, let me know