-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching song duration related info #75
Comments
You can get it with a command like How do you propose to do the formatting? |
I am currently using a bash script for the formatting but it would be better if playerctl also formatted the time like audtool does, i.e. 3:40(min:sec). Usage: https://github.com/UtkarshVerma/i3blocklets/blob/master/music |
We've got the basics for this feature in #73 now with the format parser. I know it's a bit over the top, but I think it would be cool if we put helper functions in the little template language. So like this:
|
eh, maybe simpler like |
@acrisci I just noticed this issue and the other ones. Sorry for being unresponsive. I just have stopped developing temporarily. Glad to know you implemented it. 😄 |
As far as I know,
playerctl
doesn't have any commands for fetching the song length(full duration). Whileplayerctl position
returns the current position of playback in seconds, it would be better if it were formattable, in (minute):(second) format.It would be great to implement this.
The text was updated successfully, but these errors were encountered: