fabiofalci / sconsify

A spotify console application
https://fabiofalci.github.io/sconsify
Apache License 2.0
566 stars 26 forks source link

Add command to get info about song being currently played #99

Open lisuml opened 6 years ago

lisuml commented 6 years ago

It would be nice to have something like:

sconsify -command info

which would display artist and title of currently played song. May be useful for i3block and other scripts.

fabiofalci commented 6 years ago

Yeah, that'd be great.

Actually, there is status-file argument that outputs the playing song to a file. When implemented, I was thinking about i3 status bar, but then I never actually used it. I don't remember why I didn't documented in the README, maybe I didn't test enough?

Well, you can use like this:

$ sconsify -status-file=/tmp/status.txt

Also, you can play with the format, the defaut format is {{.Action}}: {{.Track}} - {{.Artist}}\n:

$ sconsify -status-file=/tmp/status.txt -status-file-template="{{.Track}} - {{.Artist}}\n"

But yeah, a info command should be easy to implement.

lisuml commented 6 years ago

That works for me. Thanks for sharing!