You are not logged in.
Hey guys,
I really like Moc and I use Openbox. My aim was to use Rootmenu to control and see song played.
So, I decided to write a script with all fonctions I needed. I just wanna precise that I imagine there is already something like that, but i didn't find it.
And I'm proud to use my work for my system.
I will explain you how it works:
If you didn't launched Moc, it will show you a message and it won't show "Controls" section:
If you started Moc but not listening to music, it shows:
An optional info is "Bitrate", you can activate it (uncomment lines on script). Disabled by default:
When the track is paused, you'll see that info:
For wave files, there aren't id3 tags and it can't show a good tilte, so it shows a message:
I did many improvements under the script and I'll add for sure others informations (.ogg support). If you have some questions, you can ask me here.
Current version is 1.06. You can download it here: https://github.com/Ypnose/Openbox/blob/ … mocinfo.sh
I recently added a better support when the file (.mp3) has bad tags. That's why, I used to query title:
mocp -i | grep Title | sed -e 's/&/&/' -e 's/Title: //' -e '/^Song/d'
instead of:
mocp -i | grep SongTitle | sed -e 's/&/&/' -e 's/SongTitle: //'
Indeed, when the file has no tags except for Title, if you use 2nd command, you will have a strange name. With the first one, you have the entire title.
Cheers guys!
Last edited by Ypnose (2011-06-03 21:32:35)
Offline