moc, screen and figlet: A sum greater than its parts

Filed under
Software

moc users might know this and might not, but you can poll the moc server process to spit out information about the tune it’s playing. It’s something easier done than said, with just this command from a prompt:

mocp -Q %song

There are plenty of other variables you can use there. You can also prepend that with a little explanatory text, and the output is adjusted properly. For example:

mocp -Q Now\ playing:\ %song